Keysight1200X#

class Keysight1200X(
visa_resource: str | VisaConfig,
)[source]#

Bases: ScopeDriverBase

SCPI driver for Keysight InfiniiVision 1200 X-Series oscilloscopes.

Methods

check_errors

Query :SYSTem:ERRor? once and raise on a non-zero code.

close

Close the underlying transport.

digitize

:DIGitize the cached trigger source, then *OPC? under a scoped VISA timeout.

fetch_waveform

Fetch the waveform from channel over WORD (unsigned 16-bit, LSB-first), 1000 points.

force_trigger

Force a trigger event immediately, regardless of the configured conditions.

get_acquisition_mode

Read back the current acquisition mode.

get_acquisition_state

:OPERegister:CONDition? bit 3 (0x08) — set = RUNNING, clear = STOPPED.

get_average_count

Read back the waveforms-to-average count.

get_coupling

Read back input coupling on channel.

get_horizontal_scale

Read back the timebase (seconds/div).

get_probe_attenuation

Read back channel's probe attenuation ratio.

get_sample_rate

Read back the current sample rate (samples per second).

get_trigger_status

:OPERegister:CONDition? bits: 0x20 = ARMED, 0x08 = AUTO (running), else TRIGGERED.

get_vertical_offset

Read back channel's vertical offset (volts).

get_vertical_scale

Read back channel's vertical scale (V/div).

load_settings

:RECall:SETup from scope memory, or send local bytes via :SYSTem:SETup.

measure

Install then query a built-in measurement on channel.

open

Open the underlying transport.

run

Start continuous (free-running) acquisition.

save_screenshot

:SAVE:IMAGe to the scope, or :DISPlay:DATA? PNG,COLor and write locally.

save_settings

:SAVE:SETup to scope memory or to the host (:SYSTem:SETup?).

set_acquisition_mode

Set the acquisition mode.

set_average_count

Set the number of waveforms to average.

set_coupling

Set AC/DC input coupling on channel.

set_horizontal_scale

Set the timebase to seconds_per_div.

set_probe_attenuation

Set channel's probe attenuation ratio (e.g. 1, 10, 100, 1000).

set_trigger_level

Set the trigger threshold to level (volts).

set_trigger_mode

Set the trigger sweep mode (AUTO / NORMAL).

set_trigger_slope

Set the trigger edge slope (RISING / FALLING / EITHER).

set_trigger_source

Set the trigger source to analog channel.

set_trigger_type

Set the trigger type (EDGE, PULSE, …).

set_vertical_offset

Set channel's vertical offset to offset (volts).

set_vertical_scale

Set channel's vertical scale to volts_per_div (V/div).

setup_measurement

Ensure a measurement slot exists for measurement_type/channel before the scope triggers.

single

Arm a single-shot acquisition.

stop

Stop acquisition.