Rigol_DS1000Z

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

A class for communicating with a Rigol DS1000Z series oscilloscope. This class is compatible with context managers. The functional interfaces ieee, channel, timebase, display, waveform, and trigger are bound to this object as partial functions.

Parameters

visa (str) – The VISA resource address string.

autoscale()[source]

:AUToscale Autoscale the oscilloscope, followed by a 10s delay.

clear()[source]

:CLEar Clear the oscilloscope display, followed by a 1s delay.

close()[source]

Close the VISA resource to terminate the communication channel.

open()[source]

Open the VISA resource to establish the communication channel.

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

Execute a query over the VISA communication interface. The command is automatically appended with a *WAI command.

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.

run()[source]

:RUN Run the oscilloscope, followed by a 1s delay.

single()[source]

:SINGle Single trigger the oscilloscope, followed by a 1s delay.

stop()[source]

:STOP Stop the oscilloscope, followed by a 1s delay.

tforce()[source]

:TFORce Force trigger the oscilloscope, followed by a 1s delay.

write(cmd: str)[source]

Write a command over the VISA communication interface. The command is automatically appended with a *WAI command.

Parameters

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