parse_file

RigolWFM.rigol.parse_file(umodel: str, file_name: str) tuple[Any, str, str, dict] | None[source]

Parse a Rigol waveform file and return normalised metadata.

Parameters:
  • umodel – Upper-cased model string (as returned by detect_model() or supplied by the user).

  • file_name – Path to the waveform file.

Returns:

(w, header_name, serial_number, trigger_info) when umodel matches a known Rigol family, or None when it does not (allowing the caller to try non-Rigol vendors).