detect_model
- RigolWFM.wfm.detect_model(filename: str) str[source]
Detect the oscilloscope model from a waveform file’s binary signature.
Reads a small prefix of the file and uses magic bytes, file size, and embedded model strings to identify the scope family.
Returns a short model string (e.g.
"E","Z","5074") suitable for passing toWfm.from_file().- Raises:
FileNotFoundError – if the file cannot be opened.
Parse_WFM_Error – if the signature is not recognised.