awgs package
awgs.RigolDG800Server module
Provides access to Rigol DG800 series AWGs.
- class awgs.RigolDG800Server.DG800Server
Bases:
LabradServerProvides access to Rigol DG800 series AWGs.
- __init__()
- get_devices(self, c)
Lists connected DG800 AWGs. Note that the function connects to each device to check its ID.
- Parameters:
c – A LabRAD context (which is passed on to passed to
select_device())- Yields:
A list of strings corresponding to the IDs of connected DG800 AWGs
- get_output(self, c, channel)
Check whether an output is enabled
- Parameters:
c – A LabRAD context (not used)
channel (int) – Which channel to get output status. Must be 1 or 2
- Returns:
whether the channel’s output is enabled
- Return type:
boolean
- get_sin(self, c, channel)
Get the settings for a channel with sine output
- Parameters:
c – A LabRAD context (not used)
channel (int) – Which channel to get settings for. Must be 1 or 2
- Returns:
The frequency (Hz), amplitude (V), offset (V) and phase (deg) of the channel’s sine wave. If the channel is not in sine mode, returns
[0].- Return type:
A list of floats
- initServer(self)
Called by LabRAD when server is started. Connects to
usb.USB_server.
- name = '%LABRADNODE%_dg800'
- select_device(self, c, device)
Select a connected DG800 AWG
- Parameters:
c – A LabRAD context (not used)
device (string) – The ID of the DG800 AWG to connect to, as returned by
get_devices()
- set_gated(self, c, channel, gated)
Sets a channel to either be gated or triggered by the external output
- set_impedance(self, c, channel, impedance=50, inf=False, low=False)
Set the output impedance of a channel either to
- Parameters:
c – A LabRAD context (not used)
channel (int) – Which channel to set the output impedance for. Must be 1 or 2
impedance (numeric, optional) – Output impedance in Ohms. Defaults to 50, is coerced to be between 1 and 10000.
inf (bool, optional) – Sets the output to high imedance. Takes precedence over the impedance option and low impedance mode. Defaults to False.
low (bool, optional) – Sets the output to minimum impedance. Takes precedence over the impedance option. Defaults to False.
- set_ncycles(self, c, channel, ncycles)
Sets the number of cycles to run per trigger, if the mode is set to triggered by
set_gated().
- set_output(self, c, channel, enable)
Enables or disables one of the AWG’s outputs
- set_sin(self, c, channel, freq, amplitude, offset, phase)
Get the settings for a channel with sine output
- Parameters:
c – A LabRAD context (not used)
channel (int) – Which channel to get settings for. Must be 1 or 2
freq (float) – The frequency in Hertz (1E-6 to 35E6)
amplitude (float) – The amplitude in Volts (limited by impedance and amplitude high level settings)
offset (float) – The offset in Volts (limited by impedance and amplitude high level settings)
phase (float) – The phase in degrees (0 to 360)