compute_time_frequency
Compute Short-Time Fourier Transform to analyze time-frequency content of motor current signals, detecting faults under non-stationary conditions. Optionally track a specific frequency's amplitude over time.
Instructions
Compute Short-Time Fourier Transform (STFT) for time-frequency analysis.
For non-stationary conditions (variable speed/load, start-up transients). If target_freq_hz is provided, also tracks that frequency's amplitude over time. Returns a summary (not the full 2D matrix) to keep output manageable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signal_id | No | ID of a stored signal. Preferred over raw array. | |
| signal | No | Time-domain current signal. Use signal_id instead. | |
| sampling_freq_hz | No | Sampling frequency in Hz. Auto-resolved when using signal_id. | |
| nperseg | No | Window length per segment (samples) | |
| target_freq_hz | No | Frequency to track over time (Hz). If provided, returns amplitude vs time for that frequency | |
| tolerance_hz | No | Tolerance for frequency tracking (Hz) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |