diagnose_from_file
Load a motor current signal from a file and run the full MCSA diagnostic pipeline to detect faults such as broken rotor bars, bearing defects, and eccentricity.
Instructions
Load a signal from file and run the full MCSA diagnostic pipeline.
One-shot tool: reads the signal file, preprocesses, computes the spectrum, runs all fault detectors, and returns a complete diagnostic report. Ideal for batch or automated condition-monitoring workflows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the signal file (CSV, WAV, or NPY) | |
| supply_freq_hz | Yes | Supply frequency in Hz | |
| poles | Yes | Number of poles | |
| rotor_speed_rpm | Yes | Rotor speed in RPM | |
| sampling_freq_hz | No | Sampling frequency in Hz (required for NPY, optional for CSV with time column, auto-detected for WAV) | |
| signal_column | No | CSV column for the current signal | |
| time_column | No | CSV column for time (null if absent) | |
| channel | No | WAV channel index | |
| bearing_defect_freq_hz | No | Bearing defect frequency in Hz (optional) | |
| tolerance_hz | No | Frequency search tolerance in Hz |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |