Rigol_DS1000Z

class src.oscope.Rigol_DS1000Z(visa: str | None = None)[source]

A class for communicating with a Rigol DS1000Z series oscilloscope. This class is compatible with context managers. The functional interfaces acquire, channel, display, measure, timebase, trigger, and waveform are bound to this object as partial functions. IEEE 488.2 common commands (e.g. idn, rst, cls, opc) are available as methods.

Parameters:

visa (str) – The VISA resource address string.

autoscale()[source]

:AUToscale Autoscale the oscilloscope, blocking until complete.

Autoscale is an overlapped operation; completion is awaited via opc() (*OPC?), which blocks until the autoscale finishes.

clear()[source]

:CLEar Clear the oscilloscope display.

close()[source]

Close the VISA resource to terminate the communication channel.

cls()[source]

*CLS Clear the status registers.

ese(value: int | None = None)[source]

*ESE Set (when given) and query the event status enable register.

esr()[source]

*ESR? Query (and clear) the event status register.

idn()[source]

*IDN? Query the instrument identification string.

opc()[source]

*OPC? Block until all pending operations complete; returns True.

open()[source]

Open the VISA resource to establish the communication channel.

query(cmd: str, delay: float | None = None)[source]

Execute a query over the VISA communication interface. The blocking read also synchronizes the controller to the response.

Parameters:
  • cmd (str) – The command string to be written.

  • delay (float) – Time delay between write and read (optional).

Returns:

The received string.

read()[source]

Read back over the VISA communication interface.

Returns:

The received string.

rst()[source]

*RST Reset the instrument, blocking until the reset completes.

run()[source]

:RUN Run the oscilloscope.

single()[source]

:SINGle Arm a single-trigger acquisition.

sre(value: int | None = None)[source]

*SRE Set (when given) and query the service request enable register.

stb()[source]

*STB? Query the status byte register.

stop()[source]

:STOP Stop the oscilloscope.

tforce()[source]

:TFORce Force a trigger.

tst()[source]

*TST? Run the self-test; returns the result code (0 = pass).

write(cmd: str)[source]

Write a command over the VISA communication interface.

Parameters:

cmd (str) – The command string to be written.