RigolWFM.channel Module

Class structure and methods for an oscilloscope channel.

The idea is to collect all the relevant information from all the Rigol scope waveforms into a single structure that can be handled in a uniform and consistent manner.

Specifically this lets one do:

channel.times   : numpy array of signal times
channel.volts   : numpy array of signal voltages

or the stringification method to describe a channel:

print(channel)

Functions

best_scale(number)

Scale and units for a number with proper prefix.

engineering_string(number, n_digits)

Format number with proper prefix.

Classes

Channel(w, channel_number, scope[, selected])

Base class for a single channel.

Enum(value[, names, module, qualname, type, ...])

Create a collection of name/value pairs.

UnitEnum(value[, names, module, qualname, ...])

Enumerated units for scopes without them.

RigolWFM.wfm Module

Extract signals or description from Rigol 1000E Oscilloscope waveform file.

Example

>>> import RigolWFM.wfm as rigol
>>> waveform = rigol.Wfm.from_file("file_name.wfm", 'E')
>>> description = waveform.describe()
>>> print(description)

Functions

valid_scope_list()

List all the oscilloscope types.

Classes

Channel_Not_In_WFM_Error

The channel is not in the .wfm file.

Invalid_URL

Cannot use this URL.

Parse_WFM_Error

Generic Parse Error.

Read_WFM_Error

Generic Read Error.

Unknown_Scope_Error

Not one of the listed Rigol oscilloscopes.

Wfm(file_name)

Class with parsed data from a .wfm file.

Write_WAV_Error

Something went wrong while writing the .wave file.

RigolWFM.wfmconvert Module

Command line utility to convert Rigol .wfm files.

Examples:

prompt> wfmconvert E info DS1102E-A.wfm

prompt> wfmconvert E csv DS1102E-A.wfm

prompt> wfmconvert E wav DS1102E-A.wfm

Functions

csv(args, scope_data, infile)

Create a file with comma separated values.

info(args, scope_data, infile)

Create a string that describes content of .wfm file.

main()

Parse console command line arguments.

sigrok(args, scope_data, infile)

Create a Sigrok (.sr) file.

vcsv(args, scope_data, infile)

Create a file with comma separated values (full volts).

wav(args, scope_data, infile)

Create an audible .wav file for use in LTspice.