Keysight34980A#

class Keysight34980A(
visa_resource: str | VisaConfig,
*,
sync_system_clock: bool = True,
)[source]#

Bases: DAQDriverBase

Keysight 34980A Multifunction Switch/Measure Unit.

Initialize the driver.

Parameters:
  • visa_resource – VISA resource string or full VisaConfig.

  • sync_system_clock – Sync the instrument clock to host UTC on open() so returned timestamps align with the host. Enabled by default.

Attributes

ai_channels

Frozen snapshot of configured AI channels, keyed by alias.

ai_hw_timing_config

ao_channels

Frozen snapshot of configured AO channels, keyed by alias.

ao_hw_timing_config

channels

Frozen snapshot of all configured AI/AO/DI/DO channels (excludes relays).

di_channels

Frozen snapshot of configured DI channels, keyed by alias.

di_hw_timing_config

do_channels

Frozen snapshot of configured DO channels, keyed by alias.

do_hw_timing_config

relay_channels

Frozen snapshot of configured relay channels, keyed by alias.

points_in_buffer

Methods

close

Close every task/handle owned by the driver.

close_relay

ROUTe:CLOSe the relay.

configure_ai_channel

Deprecated: use configure_ai_voltage_channel.

configure_ai_current_channel

Register an AI current channel.

configure_ai_hw_timing

Configure TRIG:SOUR TIMER at the configured sample period and infinite count.

configure_ai_thermocouple_channel

Register an AI thermocouple channel.

configure_ai_voltage_channel

Configure an AI voltage channel: CONF:VOLT:DC at computed range, then add to ROUT:SCAN and enable timestamps.

configure_ao_channel

Deprecated: implement configure_ao_voltage_channel instead.

configure_ao_current_channel

Register an AO current channel.

configure_ao_voltage_channel

Register an AO voltage channel.

configure_di_line_channel

Parse MNNN/B (slot/channel/bit), program the port for DI, and register the line.

configure_di_port_channel

Parse MNNN (slot/channel), program the port for DI, and register the port.

configure_do_line_channel

Parse MNNN/B (slot/channel/bit), program the port for DO, and register the line.

configure_do_port_channel

Parse MNNN (slot/channel), program the port for DO, and register the port.

define_relay_channel

Build a RelayChannel for physical_channel (e.g. "3101" = slot 3 / channel 101).

fetch_analog

Block until the buffer holds at least one full per-channel batch, then drain a channel-aligned chunk.

get_actual_sample_rate

Actual hardware sample rate achieved after start().

open

Open the underlying transport (or verify the device is present, for handle-less SDKs).

open_relay

ROUTe:OPEN the relay.

read_analog

Software-timed read of every configured AI channel.

read_digital_line

Sample a single DI line.

read_digital_port

Sample a DI port as one N-bit integer.

start

Enable timestamps and INIT the scan.

stop

ABORt any pending scan.

write_analog_value

Write value to AO channel.

write_digital_line

Drive a single DO line.

write_digital_port

Drive a DO port as one N-bit integer.