KeysightWaveformGenerator#
- class KeysightWaveformGenerator(resourceName, name)#
Bases:
WaveformGeneratorKeysightWaveformGeneratorbase for Keysight AWGs with VISA control.Provides setup, upload, triggering, and connection management for Keysight arbitrary waveform generators using
connect(),set(),upload(),trigger(),close(), andcheck().- Constructor Summary
- KeysightWaveformGenerator(resourceName, name)#
Construct a
KeysightWaveformGenerator.- Parameters:
resourceName (
string) – VISA resource name, e.g., “TCPIP0::…::inst0::INSTR”name (
string, optional) – Device nickname
- Property Summary
- VisaDevice#
- Method Summary
- check()#
Query device error status.
- Returns:
True when the device reports no error via
SYST:ERR?- Return type:
logical
- close()#
Close the VISA session, ensuring device is idle.
- connect()#
Open VISA connection using
ResourceName.
- set()#
Configure channels (sample rate, voltage levels, trigger, mode, load).
Applies settings per channel:
SamplingRate, trigger source/slope, output mode/load, and voltage limits. Clears volatile memory before upload and ensures LSB byte order for binary blocks.
- trigger()#
Issue a software trigger on channels configured for BUS trigger. Check connection to the device
- upload()#
Upload prepared waveforms to the device and start output if enabled.
Sequences each channel’s
WaveformListby inserting leading and trailing zeros for clean triggering, scales to peak-to-peak, and writes segments + sequence tables via SCPI binary block transfers. Check connection to the device