KeysightElectrometerCommandFactory¶
- class lsst.ts.electrometer.KeysightElectrometerCommandFactory¶
Bases:
ElectrometerCommandFactory
Class that formats commands to control the electrometer via RS-232. This class includes all commands that differ in some way from the Keithley Electrometer.
Methods Summary
Returns the command to start acquiring data
activate_filter
(mode, filter_type, active)Return activate filter command.
Return always read buffer.
Return clear buffer.
Return clear buffer.
Return clear device.
Return combo of commands for disable all command.
Discharges the capacitor.
Return enable all instrument errors.
enable_display
(enable)Return enable display command string.
enable_sync
(enable)Return enable sync.
enable_temperature_reading
(enable)Return enable temperature reading.
enable_zero_check
(enable)Return enable zero check.
enable_zero_correction
(enable)Return enable zero correction.
format_trac
([timestamp, temperature, ...])Return format data stored to the buffer.
Return get buffer quantity.
get_filter_status
(mode, filter_type)Return filter status.
Return get hardware info.
get_integration_time
(mode)Return get integration time command string.
Return get last error.
get_measure
(read_option)Return get measure.
get_mode
()Return get mode.
get_range
(mode)Return get range command string.
Returns the format of the trace.
Return start storing readings into the buffer.
integration_time
(mode[, time])Return integration time.
Return the latest measurement data from buffer
Sets output trigger line
perform_zero_calibration
(mode, auto, ...)Return combo of commands for perform zero calibration command.
Return combo of commands for prepare buffer command.
Return read buffer.
Return reset device.
select_device_timer
([timer])Return select device timer.
select_source
([source])set_autodischarge
(autodischarge_state)Sets the autodischarge state.
set_buffer_size
([buffer_size])Return set buffer size.
Return take infinite measurements
set_mode
(mode)Return set mode.
set_range
(auto, range_value, mode)Return set range.
set_resolution
(mode, digit)set_timer
(mode)Return set time command string.
set_voltage_level
(amplititude)set_voltage_limit
(limit)set_voltage_range
(range)Return start storing buffer.
Return stop storing buffer.
Stops taking measurements
toggle_voltage_source
(enable)Methods Documentation
- acquire_data()¶
Returns the command to start acquiring data
- Returns:
- command
str
The generated command string
- command
- always_read() str ¶
Return always read buffer.
- Returns:
- commmand
str
The generated command string. An array of all data in the buffer.
- commmand
- disable_all()¶
Return combo of commands for disable all command.
- Returns:
- command
str
The generated command string.
- command
- enable_all_instrument_errors()¶
Return enable all instrument errors.
- Returns:
- command
str
The generated command string.
- command
- enable_display(enable)¶
Return enable display command string.
- Parameters:
- enablebool
Whether to enable the display.
- Returns:
- command
str
The generated command string.
- command
- enable_sync(enable)¶
Return enable sync.
- enable_temperature_reading(enable)¶
Return enable temperature reading.
- enable_zero_check(enable)¶
Return enable zero check.
- enable_zero_correction(enable)¶
Return enable zero correction.
- format_trac(timestamp=True, temperature=False, voltage=False, set_mode=False, mode='VOLT', channel=False)¶
Return format data stored to the buffer.
- get_integration_time(mode)¶
Return get integration time command string.
- Parameters:
- modeUnitMode
The unit of the integration time to check.
- Returns:
- command
str
The generated command string.
- command
- get_measure(read_option)¶
Return get measure.
- Parameters:
- read_option
ReadingOption
The reading option.
- read_option
- Returns:
- command
str
The generated command string.
- command
- get_range(mode)¶
Return get range command string.
- get_trace_format()¶
Returns the format of the trace.
- Returns:
- command
str
The generated command string.
- command
- get_voltage_level()¶
- get_voltage_limit()¶
- get_voltage_range()¶
- get_voltage_source_status()¶
- init_buffer()¶
Return start storing readings into the buffer.
- Returns:
- command
str
The generated command string.
- command
- integration_time(mode, time=0.001)¶
Return integration time.
- next_read()¶
Return the latest measurement data from buffer
- Returns:
- command
str
The generated command string.
- command
- perform_zero_calibration(mode, auto, range_value, int_time)¶
Return combo of commands for perform zero calibration command. Required when setting mode to Volts/Amps to cancel any internal offsets. See page 4-10 in User’s manual for sequence
- prepare_buffer()¶
Return combo of commands for prepare buffer command.
- Returns:
- command
str
The generated command string.
- command
- select_device_timer(timer=0.001)¶
Return select device timer.
- select_source(source=Source.TIM)¶
- set_autodischarge(autodischarge_state)¶
Sets the autodischarge state.
- Returns:
- command
str
The generated command string.
- command
- set_buffer_size(buffer_size=50000)¶
Return set buffer size.
- Parameters:
- buffer_size: `int`
The number of values to store in the buffer. Maximum is 50000.
- set_infinite_triggers()¶
Return take infinite measurements
- Returns:
- command
str
The generated command string.
- command
- set_mode(mode)¶
Return set mode.
- set_range(auto, range_value, mode)¶
Return set range.
- Parameters:
- auto
bool
Whether auto range is activated.
- range_value
float
The range to set. Not used if auto is true.
- mode
enums.UnitMode
The unit of the range to set.
- auto
- Returns:
- command
str
The generated command string.
- command
- set_resolution(mode, digit)¶
- set_voltage_level(amplititude)¶
- set_voltage_limit(limit)¶
- set_voltage_range(range)¶
- start_storing_buffer()¶
Return start storing buffer.
- Returns:
- command
str
The generated command string.
- command
- toggle_voltage_source(enable)¶