This is an object representing the Rigol DG2052 function generator. This object uses the SCPI protocol for communicating with the Rigol DG2052 function generator.
Method | __init__ |
Initializes the DG2052 object |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Gets the output volt limits of the specified channel |
Method | is |
Undocumented |
Method | set |
Undocumented |
Method | set |
Undocumented |
Method | set |
Sets the output channel ON or OFF |
Method | set |
Undocumented |
Method | set |
Undocumented |
Method | set |
Undocumented |
Method | set |
Undocumented |
Method | toggle |
Undocumented |
Method | trigger |
Undocumented |
Method | whoami |
shows the identification of the connected instrument |
Instance Variable | comm |
The communication method used (either TCPIP or USB) |
Instance Variable | port |
The SCPI port describing the device, consists of a communication method and device port followed by the "::INSTR" keyword. communication method: can be either USB or TCPIP (other communication methods are not supported for this device) device port: either COMM4 or /dev/USB0 for USB in windows and posix systems respectively or the IP Address for TCPIP... |
Instance Variable | rm |
The resource manager object for pyvisa (for future use) |
Initializes the DG2052 object
Parameters | |
port:str | The SCPI port describing the device, consists of a communication method and device port followed by the "::INSTR" keyword.
communication method: can be either format: " example: " |
Literal[ 1, 2]
, freq: float
= 1000.0, amp: float
= 5, offset: float
= 0, phase: int
= 0):
¶
Undocumented
Literal[ 1, 2]
, freq: float
= 1000.0, amp: float
= 5.0, offset: float
= 0.0, phase: int
= 0):
¶
Undocumented
Literal[ 1, 2]
, freq: float
= 1000.0, amp: float
= 5.0, offset: float
= 0.0, phase: int
= 0):
¶
Undocumented
Literal[ 1, 2]
, amp: float
= 5, offset: float
= 0, phase: int
= 0, signal_type: SweepSignalType
= SweepSignalType.SINE, htime_start: float
= 0, htime_stop: float
= 0, freq_start: float
= 100, freq_stop: float
= 1000.0, marker: bool
= False, freq_marker: float
= 550, rtime: float
= 0, time: float
= 1, spacing: SweepSpacing
= SweepSpacing.LIN, step: int
= 2, trigger_slope: SweepTriggerSlope
= SweepTriggerSlope.POSITIVE, trigger_source: SweepTriggerSource
= SweepTriggerSource.INTERNAL):
¶
Undocumented
shows the identification of the connected instrument
Returns | |
str | The identification of the connected instrument |
The SCPI port describing the device, consists of a communication method and device port followed by the "::INSTR" keyword. communication method: can be either USB or TCPIP (other communication methods are not supported for this device) device port: either COMM4 or /dev/USB0 for USB in windows and posix systems respectively or the IP Address for TCPIP
format: "<communication method>::<device port>::INSTR"
example: "TCPI::192.168.1.11::INSTR" or "USB::COMM4::INSTR"