from_file
- RigolWFM.tek.from_file(file_name: str) TekWaveform[source]
Parse a Tektronix .wfm file and normalize it for Wfm.from_file().
Handles WFM#001, WFM#002, and WFM#003 formats in both little-endian and big-endian byte orders.
- Parameters:
file_name – path to a Tektronix .wfm waveform file.
- Returns:
A TekWaveform object whose header follows the shape expected by RigolWFM.channel.Channel and RigolWFM.wfm.Wfm.
- Raises:
ValueError – if the file cannot be parsed as a valid Tektronix waveform.