Use this skill for excitation-system recorder files in TK2 binary format, especially WFLC/TK-style files containing UAB, UBC, UCA, UFD, Uld, and IFD channels.
Run the bundled script first; it handles the fragile binary parsing and plotting:
python scripts/analyze_tk2.py INPUT.tk2 --output-dir OUT --mode single --phase UAB --kind step
Common modes:
# 5% or large step response, using UAB only
python scripts/analyze_tk2.py "01-5%阶跃.tk2" --output-dir out --mode single --phase UAB --kind step
# Pulse-blocking decay, using UAB only
python scripts/analyze_tk2.py "05-封脉冲.tk2" --output-dir out --mode single --phase UAB --kind decay
# Legacy three-phase average RMS, only if explicitly requested
python scripts/analyze_tk2.py "01-5%阶跃.tk2" --output-dir out --mode three-phase --kind step
Outputs:
*_curve.png: normalized voltage response curve.*_series.csv: per-cycle time, voltage RMS, UFD mean, IFD mean.*_metrics.json: sampling info and calculated metrics.The script uses the recorder pattern observed in Manla excitation tests:
6 * int16 channel samples.UABUBCUCAUFDUldIFD25600 Hz.If auto-detection fails, rerun with explicit values:
python scripts/analyze_tk2.py INPUT.tk2 --header-bytes 8930 --sample-rate 25600 --output-dir OUT
For report work, prefer --mode single --phase UAB unless the user explicitly asks for three-phase average.
Single-phase mode:
UAB, UBC, or UCA).Three-phase mode:
UAB, UBC, and UCA.For UFD, Uld, and IFD, calculate one-cycle arithmetic means.
For --kind step, the script estimates:
amp_pct: final steady voltage change relative to initial value.Mp_pct: overshoot relative to the step amplitude.Tup_s: 10%-to-90% rise time.Tp_s: time from step start to peak.Ts_s: first time after which the response stays within a 5% band of final step amplitude.Inspect metrics before copying them into reports. If the step happens outside the default detection window, set:
--step-window START END
--initial-window START END
--final-window START END
For --kind decay, the script estimates T_decay_1e_s from the time between:
0.999, and1/e of the initial value.Use the result as the pulse-blocking open-circuit decay time constant when the recorder setup and test method match the report method.
When inserting results into a Word report:
按UAB单相有效值计算.发电机5%空载阶跃响应试验(UAB单相有效值).共 1 个版本