Impedance Analyzer
TcpInstruments.Agilent4294A
โ TypeSupported functions
TcpInstruments.Agilent4395A
โ TypeSupported functions
TcpInstruments.AgilentImpedAnalyzer
โ TypeSupported models
Agilent4294A
Agilent4395A
Supported functions
Agilent Impedance Analyzer
TcpInstruments.get_frequency
โ Methodget_frequency(ia::Instr{<:AgilentImpedAnalyzer})
Get an array of frequency values with the same number of points as the data trace Output is in [MHz]
Arguments
ia::Instr{<:AgilentImpedAnalyzer}
: ImpedanceAnalyzer
Returns
Array
: frequency values with the same number of points as the data trace
TcpInstruments.get_frequency_limits
โ Methodget_frequency_limits(ia::Instr{<:AgilentImpedAnalyzer})
Gets frequency limits
Arguments
ia::Instr{<:AgilentImpedAnalyzer}
: ImpedanceAnalyzer
Returns
Tuple{Frequency, Frequency}
: (lowerlimit, upperlimit)
TcpInstruments.get_impedance_analyzer_info
โ Methodget_impedance_analyzer_info(ia::Instr{<:AgilentImpedAnalyzer})
Get current acquisition parameters from the impedance analyzer
Arguments
ia::Instr{<:AgilentImpedAnalyzer}
: ImpedanceAnalyzer
Returns
ImpedanceAnalyzerInfo
: dcvoltage [V] acvoltage [V] numaverages bandwidthlevel [1, 2, 3, 4, 5] pointdelaytime [s] sweepdelaytime [s] sweep_direction ["UP", "DOWN"]
TcpInstruments.get_num_averages
โ Methodget_num_averages(ia::Instr{<:AgilentImpedAnalyzer})
Get the number of sweep averages being used
Arguments
ia::Instr{<:AgilentImpedAnalyzer}
: ImpedanceAnalyzer
Returns
Float64
: number of sweet averages being iused
TcpInstruments.get_num_data_points
โ Methodget_num_data_points(ia::Instr{<:AgilentImpedAnalyzer})
Gets the set number of data points
Arguments
ia::Instr{<:AgilentImpedAnalyzer
: ImpedanceAnalyzer
Returns
Int
: number of data points
TcpInstruments.get_point_delay_time
โ Methodget_point_delay_time(ia::Instr{<:AgilentImpedAnalyzer})
Get time delay value used between data point acquisitions Output is in [s]
TcpInstruments.get_sweep_delay_time
โ Methodget_sweep_delay_time(ia::Instr{<:AgilentImpedAnalyzer})
Get time delay value used between sweep acquisitions
Arguments
ia::Instr{<:AgilentImpedAnalyzer}
: ImpedanceAnalyzer
Returns
Float64
: Get time delay value used between sweep acquisitions in [s]
TcpInstruments.get_sweep_direction
โ Methodget_sweep_direction(ia::Instr{<:AgilentImpedAnalyzer})
Get acquisition sweep direction Output is ["UP", "DOWN"]
Arguments
ia::Instr{<:AgilentImpedAnalyzer}
: ImpedanceAnalyzer
Returns
UP
sweeps along increasing values (left to right on screen),DOWN
sweeps along decreasing values (right to left on screen)
TcpInstruments.get_volt_dc
โ Methodget_volt_dc(ia::Instr{<:AgilentImpedAnalyzer})
Gets DC voltage
Arguments
ia::Instr{<:AgilentImpedAnalyzer
: ImpedanceAnalyzer
Returns
Float64
: Voltage
TcpInstruments.is_average_mode_on
โ Methodis_average_mode_on(ia::Instr{<:AgilentImpedAnalyzer})
Get status for whether average mode is on
Arguments
ia::Instr{<:AgilentImpedAnalyzer}
: ImpedanceAnalyzer
Returns
Bool
: [true, false]
TcpInstruments.set_frequency_limits
โ Methodset_frequency_limits(ia::Instr{<:AgilentImpedAnalyzer}, lower_limit, upper_limit)
Sets lower and upper frequency limits
Arguments
ia::Instr{<:AgilentImpedAnalyzer}
: ImpedanceAnalyzerlower_bound::Frequency
: lower boundupper_bound::Frequency
: upper bound
TcpInstruments.set_num_data_points
โ Methodset_num_data_points(ia::Instr{<:AgilentImpedAnalyzer}, num_points)
Arguments
ia::Instr{<:AgilentImpedAnalyzer
: ImpedanceAnalyzernum_data_points
: number of data points
TcpInstruments.set_volt_dc
โ Methodset_volt_dc(obj::Instr{<:AgilentImpedAnalyzer}, num::Voltage)
Sets DC voltage
Arguments
obj::Instr{<:AgilentImpedAnalyzer
: ImpedanceAnalyzernum::Voltage
: voltage
TcpInstruments.get_bandwidth
โ Methodget_bandwidth(instr)
Returns bandwidth level (1-5)
Arguments
i::Instr{Agilent4294A}
: ImpedanceAnalyzer
Returns
Int
: Between 1 and 5
- (Initial value) Specifies bandwidth 1 (shortest measurement time)
- Specifies bandwidth 2
- Specifies bandwidth 3
- Specifies bandwidth 4
- Specifies bandwidth 5 (longest measurement time, accurate
measurement).
TcpInstruments.get_channel
โ Methodget_channel(i::Instr{Agilent4294A})
Returns which channel is currently active, either 1 or 2.
TcpInstruments.get_impedance
โ Methodget_impedance(ia::Instr{Agilent4294A})
Gets the impedance from the impedance analyzer. This function doesn't change any settings on the device, it only grabs data using the current settings.
Arguments
ia::Instr{Agilent4294A}
: ImpedanceAnalyzer
Returns
ImpedanceAnalyzerData
: impedance from impedance analyzer
TcpInstruments.get_volt_ac
โ Methodget_volt_ac(instr)
Returns oscillator (ac) voltage
Arguments
i::Instr{Agilent4294A}
: ImpedanceAnalyzer
Returns
Float64
: oscillator (ac) voltage
TcpInstruments.set_bandwidth
โ Methodset_bandwidth(i::Instr{Agilent4294A}, n)
Sets bandwidth level (1-5)
Arguments
i::Instr{Agilent4294A}
: ImpedanceAnalyzern::Int
: Desired bandwidth level (between 1 and 5)
TcpInstruments.set_channel
โ Methodset_channel(i::Instr{Agilent4294A}, n::Int)
Sets which channel the impedance analyser is using. n
must be 1 or 2.
TcpInstruments.set_measurement_to_complex
โ Methodset_measurement_to_complex(ia::Instr{Agilent4294A})
Set Traces A & B to measure Z & Y, respectively Z: Impedance (complex number R + jX) Y: Admittance (complex number G + jB)
R: Equivalent series resistance X: Equivalent series reactance G: Equivalent parallel conductance B: Equivalent parallel susceptance
TcpInstruments.set_measurement_to_impedance_and_phase
โ Methodset_measurement_to_impedance_and_phase(ia::Instr{Agilent4294A})
Set Traces A & B to measure |Z| & ฮธ, respectively |Z|: Impedance amplitude (absolute value) ฮธ: Impedance phase
TcpInstruments.set_volt_ac
โ Methodset_volt_ac(instr, voltage)
Sets the ImpedanceAnalyzer voltage
Arguments
i::Instr{Agilent4294A}
: ImpedanceAnalyzervoltage
: Desired voltage, range for voltage setting: 5E-3 to 1
TcpInstruments.get_bandwith
โ MethodReturns device bandwidth
TcpInstruments.get_channel
โ MethodReturns 1 or 2 depending on current channel
TcpInstruments.get_impedance
โ Methodget_impedance(obj::Instr{Agilent4395A})
P. 3-10
Error corrected data The results of error correction are stored in the data arrays as complex number pairs. Formatted data
This is the array of data being displayed. It reflects all post-processing functions such as electrical delay, and the units of the array read out depends on the current display format.
Arguments
obj::Instr{Agilent4395A}
: ImpedanceAnalyzer
TcpInstruments.set_bandwith
โ MethodPg. B-3
2, 10, 30, 100, 300, 1000 (=1k), 3000 (=3k), 10000 (=10k), 30000 (=30k) (Network and impedance analyzers)
TcpInstruments.set_channel
โ Methodset_channel(i, channel_number)
Uses.
set_channel(i, 1)
set_channel(i, 2)
Multimeter
TcpInstruments.KeysightDMM34465A
โ TypeSupported functions
TcpInstruments.KeysightMultimeter
โ TypeSupported models
KeysightDMM34465A
Supported functions
Keysight Multimeter
TcpInstruments.get_channel
โ Methodget_channel(obj::Instr{<:KeysightMultimeter})
Indicates which input terminals are selected on the front panel Front/Rear switch. This switch is not programmable; this query reports the position of the switch, but cannot change it.
Do not toggle the Front/Rear switch with active signals on the terminals. This switch is not intended to be used in this way and may be damaged by high voltages or currents, possibly compromising the instrument's safety features.
Returns
- "FRON" or "REAR"
TcpInstruments.get_current
โ Methodget_current(obj::Instr{<:KeysightMultimeter}; type="DC")
Returns current
Arguments
obj::Instr{<:KeysightMultimeter}}
: Multimeter
Keywords
type
: "DC" | "AC" (Default DC)
TcpInstruments.get_resistance
โ Methodget_resistance(multimeter; wire=2)
get_resistance(multimeter; wire=4)
Returns resistance
Arguments
obj::Instr{<:KeysightMultimeter}}
: Multimeter
Keywords
wire
: 2 | 4 (Required)
TcpInstruments.get_tc_temperature
โ Methodget_tc_temperature(obj::Instr{<:KeysightMultimeter})
Perform take a measurement with the probe mode set to thermocouple
Arguments
obj::Instr{<:KeysightMultimeter}}
: Multimeter
Returns
Float64
: tc temperature
TcpInstruments.get_temp_unit
โ Methodget_temp_unit(multimeter)
Returns set temperature unit
Arguments
obj::Instr{<:KeysightMultimeter}}
: Multimeter
Returns
u
: C, F or K
TcpInstruments.get_voltage
โ MethodReturns voltage
Keywords
type
: "DC" | "AC" (Default DC)
TcpInstruments.set_tc_type
โ Methodset_tc_type(multimeter; type="K")
Sets TC Type
Arguments
obj::Instr{<:KeysightMultimeter}}
: Multimeter
Keywords
type
: Can be E, J, K, N, R, T (Defaults to K)
TcpInstruments.set_temp_unit_celsius
โ Methodset_temp_unit_celsius(multimeter)
Sets the temperature unit to celcius
Arguments
obj::Instr{<:KeysightMultimeter}}
: Multimeter
TcpInstruments.set_temp_unit_farenheit
โ Methodset_temp_unit_farenheit(multimeter)
Sets the temperature unit to farenheit
Arguments
obj::Instr{<:KeysightMultimeter}}
: Multimeter
TcpInstruments.set_temp_unit_kelvin
โ Methodset_temp_unit_kelvin(multimeter)
Sets the temperature unit to kelvin
Arguments
obj::Instr{<:KeysightMultimeter}}
: Multimeter
Oscilloscope
TcpInstruments.AgilentDSOX1204G
โ TypeSupported functions
run
stop
get_data
get_waveform_info
get_data_transfer_format
set_data_transfer_format_8bit
set_data_transfer_format_16bit
get_acquisition_type
set_acquisition_type
set_acquisition_type_normal
set_acquisition_type_average
set_acquisition_type_high_res
set_acquisition_type_high_peak
get_impedance
set_impedance_1Mohm
set_impedance_50ohm
get_lpf_state
lpf_on
lpf_off
get_coupling
get_function
set_function
get_frequency
set_frequency
get_amplitude
set_amplitude
get_voltage_offset
set_voltage_offset
set_burst_mode_gated
set_burst_mode_triggered
get_burst_mode
get_mode
set_mode_burst
set_mode_cw
set_speed_mode
set_waveform_num_points
get_waveform_num_points
TcpInstruments.AgilentDSOX4024A
โ TypeSupported functions
run
stop
get_data
get_waveform_info
get_data_transfer_format
set_data_transfer_format_8bit
set_data_transfer_format_16bit
get_acquisition_type
set_acquisition_type
set_acquisition_type_normal
set_acquisition_type_average
set_acquisition_type_high_res
set_acquisition_type_high_peak
get_impedance
set_impedance_1Mohm
set_impedance_50ohm
get_lpf_state
lpf_on
lpf_off
get_coupling
get_function
set_function
get_frequency
set_frequency
get_amplitude
set_amplitude
get_voltage_offset
set_voltage_offset
set_burst_mode_gated
set_burst_mode_triggered
get_burst_mode
get_mode
set_mode_burst
set_mode_cw
set_speed_mode
set_waveform_num_points
get_waveform_num_points
TcpInstruments.AgilentDSOX4034A
โ TypeSupported functions
run
stop
get_data
get_waveform_info
get_data_transfer_format
set_data_transfer_format_8bit
set_data_transfer_format_16bit
get_acquisition_type
set_acquisition_type
set_acquisition_type_normal
set_acquisition_type_average
set_acquisition_type_high_res
set_acquisition_type_high_peak
get_impedance
set_impedance_1Mohm
set_impedance_50ohm
get_lpf_state
lpf_on
lpf_off
get_coupling
get_function
set_function
get_frequency
set_frequency
get_amplitude
set_amplitude
get_voltage_offset
set_voltage_offset
set_burst_mode_gated
set_burst_mode_triggered
get_burst_mode
get_mode
set_mode_burst
set_mode_cw
set_speed_mode
set_waveform_num_points
get_waveform_num_points
TcpInstruments.AgilentScope
โ TypeSupported models
AgilentDSOX4024A
AgilentDSOX4034A
Supported functions
run
stop
get_data
get_waveform_info
get_data_transfer_format
set_data_transfer_format_8bit
set_data_transfer_format_16bit
get_acquisition_type
set_acquisition_type
set_acquisition_type_normal
set_acquisition_type_average
set_acquisition_type_high_res
set_acquisition_type_high_peak
get_impedance
set_impedance_1Mohm
set_impedance_50ohm
get_lpf_state
lpf_on
lpf_off
get_coupling
get_function
set_function
get_frequency
set_frequency
get_amplitude
set_amplitude
get_voltage_offset
set_voltage_offset
set_burst_mode_gated
set_burst_mode_triggered
get_burst_mode
get_mode
set_mode_burst
set_mode_cw
set_speed_mode
set_waveform_num_points
get_waveform_num_points
Agilent Oscilloscope
TcpInstruments.get_acquisition_type
โ Methodget_acquisition_type(scope::Instr{<:AgilentScope})
Gets acquisition type
Arguments
instr::Instr{<:AgilentScope}
: AgilentScope
Returns
String
: acquisition type
TcpInstruments.get_coupling
โ Methodget_coupling(instr::Instr{<:AgilentScope}; chan=1)
Arguments
instr::Instr{<:AgilentScope}
: AgilentScope
Keywords
chan=1
: specific channel
Returns
String
: "AC" or "DC"
TcpInstruments.get_data
โ Methodget_data(instr::Instr{<:AgilentScope}, ch_vec::Vector{Int}; check_channels=true)
get_data(instr::Instr{<:AgilentScope}, ch::Integer)
get_data(instr::Instr{<:AgilentScope})
Grab data from the specified channel(s). If no channels are specified, data will be grabbed from all available channels
Arguments
instr::Instr{<:AgilentScope}
: AgilentScopech::Integer
: channel numberch_vec::Vector{Int}
: vector of channels
Keywords
check_channels=true
: checks channels
Returns
[]
: data from scope
Throws
"Channel is offline, data cannot be read"
: if channel is offline
TcpInstruments.get_data_transfer_format
โ Methodget_data_transfer_format(instr::Instr{<:AgilentScope})
Gets data transfer format
Arguments
instr::Instr{<:AgilentScope}
: AgilentScope
Returns
String
: data transfer format
TcpInstruments.get_edge_type
โ Methodgetedgetype(scope::Instrument{<:AgilentScope})
Gets edge type
Arguments
instr::Instr{<:AgilentScope}
: AgilentScope
Returns
String
: POSITIVE, NEGATIVE, EITHER, ALTERNATE
TcpInstruments.get_impedance
โ Methodget_impedance(instr::Instr{<:AgilentScope}; chan::Integer=1)
Arguments
instr::Instr{<:AgilentScope}
: AgilentScope
Keywords
chan::Integer=1
: specific channel
Returns
"FIFT"
: 50โฆ"ONEM"
: 1Mโฆ
TcpInstruments.get_lpf_state
โ Methodget_lpf_state(instr::Instr{<:AgilentScope}; chan=1)
See state the internal low-pass filter:
Arguments
instr::Instr{<:AgilentScope}
: AgilentScope
Keywords
chan=1
: specific channel
Returns
String
: "0" or "1"
TcpInstruments.get_mode
โ Methodget_mode(scope::Instr{<:AgilentScope})
Get scope mode
Arguments
instr::Instr{<:AgilentScope}
: AgilentScope
Returns
String
: "NORM" or "AUTO"
TcpInstruments.get_time_axis
โ Methodget_time_axis(scope::Instr{<:AgilentScope})
Gets the horizontal scale or units per divison for the main window
Arguments
scope::Instr{<:AgilentScope}
: AgilentScope
Returns
NamedTuple
: With the fields timeperdiv time_offset
TcpInstruments.get_trigger
โ Methodget_trigger(scope::Instrument{<:AgilentScope})
Gets trigger parameters
Arguments
scope::Instr{<:AgilentScope}
: AgilentScope
Returns
- `TriggerInfo': Struct of scope mode , trigger level, edge type
TcpInstruments.get_trigger_level
โ Methodget_trigger_level(scope::Instr{<:AgilentScope})
Gets trigger level
Arguments
instr::Instr{<:AgilentScope}
: AgilentScope
Returns
Voltage
: trigger level
TcpInstruments.get_trigger_mode
โ Methodget_trigger_mode(scope::Instr{<:AgilentScope})
Gets trigger mode
Arguments
instr::Instr{<:AgilentScope}
: AgilentScope
Returns
String
: "EDGE", "GLITCH", "PATTERN", "TV", "DELAY", "EBURST"
TcpInstruments.get_voltage_axis
โ Methodget_voltage_axis(scope::Instr{<:AgilentScope}, ch_vec::Vector{Int})
get_voltage_axis(scope::Instr{<:AgilentScope}, ch::Int)
get_voltage_axis(scope::Instr{<:AgilentScope})
Gets the vertical scale setting from the specified channel(s). If no channels are specified, vertical scale setting for all channels will be returned
Arguments
instr::Instr{<:AgilentScope}
: AgilentScopechannels::Vector{Int}
: vector of channel numberschannel::Int
: channel number
Returns
NamedTuple
: per channel with the fields channel scale (Voltage per division) offset (Voltage offset)
Throws
"Channel is offline, voltage scale cannot be read"
: if channel is offline
TcpInstruments.get_waveform_info
โ Methodget_waveform_info(instr::Instr{<:AgilentScope}, ch::Integer)
Grab channel information and return it in a ScopeInfo
(@ref) struct
Arguments
instr::Instr{<:AgilentScope}
: AgilentScopech::Integer
: channel
Returns
ScopeInfo
: Struct of scope information
TcpInstruments.lpf_off
โ Methodlpf_off(instr::Instr{<:AgilentScope}; chan=1)
Turn off an internal low-pass filter.
Arguments
instr::Instr{<:AgilentScope}
: AgilentScope
Keywords
chan=1
: specific channel
TcpInstruments.lpf_on
โ Methodlpf_on(instr::Instr{<:AgilentScope}; chan=1)
Turn on an internal low-pass filter. When the filter is on, the bandwidth of the specified channel is limited to approximately 25 MHz.
Arguments
instr::Instr{<:AgilentScope}
: AgilentScope
Keywords
chan=1
: specific channel
TcpInstruments.run
โ Methodrun(scope)
Run Oscilloscope
TcpInstruments.set_acquisition_type
โ Methodset_acquisition_type(scope::Instr{<:AgilentScope, type::Symbol})
Sets acquisition type to either normal, average, high_res, or peak.
Arguments
instr::Instr{<:AgilentScope}
: AgilentScopetype::Symbol
: The acquisition type. Must be either:normal
,:average
,:high_res
, orpeak
.
TcpInstruments.set_acquisition_type_average
โ Methodset_acquisition_type_average(scope::Instr{<:AgilentScope})
Set acquisition type to average
Arguments
instr::Instr{<:AgilentScope}
: AgilentScope
TcpInstruments.set_acquisition_type_high_res
โ Methodset_acquisition_type_high_res(scope::Instr{<:AgilentScope})
Set acquisition type to high res
Arguments
instr::Instr{<:AgilentScope}
: AgilentScope
TcpInstruments.set_acquisition_type_normal
โ Methodset_acquisition_type_normal(scope::Instr{<:AgilentScope})
Set acquisition type to normal
Arguments
instr::Instr{<:AgilentScope}
: AgilentScope
TcpInstruments.set_acquisition_type_peak
โ Methodset_acquisition_type_peak(scope::Instr{<:AgilentScope})
Set acquisition type to type peak
Arguments
instr::Instr{<:AgilentScope}
: AgilentScope
TcpInstruments.set_data_transfer_format_16bit
โ Methodsetdatatransferformat16bit(instr::Instr{<:AgilentScope})
Set data transfer format to 16bit
Arguments
instr::Instr{<:AgilentScope}
: AgilentScope
TcpInstruments.set_data_transfer_format_8bit
โ Methodset_data_transfer_format_8bit(instr::Instr{<:AgilentScope})
Set data transfer format to 8bit
Arguments
instr::Instr{<:AgilentScope}
: AgilentScope
TcpInstruments.set_edge_type
โ Methodset_edge_type(scope::Instr{<:AgilentScope, edge_type::Symbol})
Sets edge type (slop) to either POSITIVE, NEGATIVE, EITH (either), Alt(alternate)
Arguments
instr::Instr{<:AgilentScope}
: AgilentScopeedge_type::String
: The edge type. Must be either "POSITIVE", "NEGATIVE", "EITHER", "ALTERNATE",
TcpInstruments.set_impedance_1Mohm
โ Methodset_impedance_1Mohm(instr::Instr{<:AgilentScope}; chan=1)
Set impedance to 1Mโฆ
Arguments
instr::Instr{<:AgilentScope}
: AgilentScope
Keywords
chan=1
: specific channel
TcpInstruments.set_impedance_50ohm
โ Methodset_impedance_50ohm(instr::Instr{<:AgilentScope}; chan=1)
Set impedance to 50โฆ
Arguments
instr::Instr{<:AgilentScope}
: AgilentScope
Keywords
chan=1
: specific channel
TcpInstruments.set_mode
โ Methodset_mode(scope::Instrument{<:AgilentScope}, mode::String)
Set scope mode
Arguments
instr::Instr{<:AgilentScope}
: AgilentScopemode::String
: "AUTO" or "NORM"
TcpInstruments.set_speed_mode
โ Methodsetspeedmode(instr::Instr{<:AgilentScope}, speed::Integer)
Adjust the tradeoff between speed and resolution. This is a wrapper function around the three functions:
set_data_transfer_format_16bit
(@ref)set_data_transfer_format_8bit
(@ref)set_waveform_points_mode
(@ref)
Inputs: instr
: handle to the connected Agilenst oscilloscope speed
: integer of value 1,3,5, or 6, where 1 is slowest and 6 is fastest.
- 1: 16bit, RAW mode
- 3: 16bit, NORMAL mode
- 5: 8bit, RAW mode
- 6: 8bit, NORMAL mode
Speed 6 corresponds to the Agilent scope normal setting when booting.
TcpInstruments.set_time_axis
โ Methodset_time_axis(scope::Instr{<:AgilentScope}; time_per_div::Unitful.Time, time_offset::Unitful.Time)
Set the horizontal scale or units per division for the main window by setting the time per div and/or time offset
Arguments
scope::Instr{<:AgilentScope}
: AgilentScopetime_per_div::Unitful.Time
: Time per division [optional]time_offset::Unitful.Time
: Offset time [optional]
TcpInstruments.set_trigger
โ Methodset_trigger(scope::Instrument{<:AgilentScope}; level::Voltage, mode::Symbol, edge::Symbol=:pos)
Set trigger parameters
Arguments
scope::Instr{<:AgilentScope}
: AgilentScopemode::String
: scope mode "NORM" or "AUTO"level::Voltage
: voltage to set trigger to
Keywords
edge::String
: Default value of "POS"
TcpInstruments.set_trigger_level
โ Methodset_trigger_level(scope::Instrument{<:AgilentScope}, level::Voltage)
Sets trigger level
Arguments
instr::Instr{<:AgilentScope}
: AgilentScope- 'level::Voltage' : voltage to set trigger level to
TcpInstruments.set_trigger_mode
โ Methodset_trigger_mode(scope::Instr{<:AgilentScope, mode::Symbol})
Sets trigger mode to either EDGE, GLITCH, PATTERN, TV, DELAY, EBURST
Arguments
instr::Instr{<:AgilentScope}
: AgilentScopemode::String
: The trigger mode. Must be either "EDGE", "GLITCH", "PATTERN", "TV", "EBURST". PROGRAMMING GUIDE p. 1308
TcpInstruments.set_waveform_num_points
โ Methodset_waveform_num_points(instr::Instr{<:AgilentScope}, num_points::Integer)
Sets the number of sample points in the voltage trace returned by the scope when using get_data
(@ref).
Arguments
num_points::Integer
: number of sample points.
TcpInstruments.set_waveform_points_mode
โ Methodset_waveform_points_mode(scope, mode)
Set which data to transfer when using get_data
(@ref)
Inputs: scope
: handle to the connected oscilloscope mode
:
:NORMAL
: transfer the measurement data:RAW
: transfer the raw acquisition data
TcpInstruments.stop
โ Methodstop(scope)
Stop Oscilloscope
Power Supply
TcpInstruments.AgilentE36312A
โ TypeSupported functions
TcpInstruments.AgilentPowerSupply
โ TypeSupported models
AgilentE36312A
Supported functions
TcpInstruments.SRSPS310
โ TypeSupported functions
TcpInstruments.SRSPowerSupply
โ TypeSupported models
SRSPS310
(GPIB enabled device. Requires an attached Prologix Controller to work)
Supported functions
TcpInstruments.Versatile10010XRLXI
โ TypeSupported functions
get_output_status
enable_output
disable_output
get_voltage
set_voltage
get_current_limit
set_current_limit
get_voltage_limit
set_voltage_limit
remote_mode
(automatically called byinitialize
)local_mode
(automatically called byterminate
)
TcpInstruments.Versatile2005XRLXI
โ TypeSupported functions
get_output_status
enable_output
disable_output
get_voltage
set_voltage
get_current_limit
set_current_limit
get_voltage_limit
set_voltage_limit
remote_mode
(automatically called byinitialize
)local_mode
(automatically called byterminate
)
TcpInstruments.VersatilePowerSupply
โ TypeSupported models
Versatile2005XRLXI
(single channel)Versatile10010XRLXI
(single channel)
Supported functions
get_output_status
enable_output
disable_output
get_voltage
set_voltage
get_current_limit
set_current_limit
get_voltage_limit
set_voltage_limit
remote_mode
(automatically called byinitialize
)local_mode
(automatically called byterminate
)
This instrument has a remote mode and a local mode. Some commands do not work while the device is in local mode, therefore remote_mode
is called automatically upon initialization. By default, the device is always in remote mode.
These functions should not be directly needed but if for some reason you need to switch modes while using the device you can use local_mode
to turn the device back to local mode.
Agilent Power Supply
TcpInstruments.disable_output
โ Methoddisable_output(obj::Instr{<:AgilentPowerSupply})
This will disable an output on a device.
If the device has multiple channels it will disable the device for the currently selected channel. To see the channel that will effected use the get_channel
function.
If you want to disable a different channel, first use set_channel
to choose the channel. Running this function subsequently will disable that channel
Arguments
obj::Instr{<:AgilentPowerSupply}
: power supply instrument
TcpInstruments.enable_output
โ Methodenable_output(obj::Instr{<:AgilentPowerSupply})
This will enable an output on a device.
If the device has multiple channels it will enable the device for the currently selected channel. To see the channel that will effected use the get_channel
function.
If you want to enable a different channel, first use set_channel
to choose the channel. Running this function subsequently will enable that channel
Arguments
obj::Instr{<:AgilentPowerSupply}
: power supply instrument
TcpInstruments.get_channel
โ Methodget_channel(obj::Instr{<:AgilentPowerSupply}; v=false)
This will return the global or default channel of a device.
Allows you to see what the global channel is set to at the moment
Parameters:
- obj
- must be a Power Supply Instrument
- chan
- This can be a string or int: 1, 2, 3 .. to n
- v
- optional boolean flag argument that is set to false
- setting to
true
will print the verbose channel name
Supported Instruments:
- Power supply
Returns: String - {"1"|"2"|...} - when v == true: "P6V", .. etc
TcpInstruments.get_current_limit
โ Methodget_current_limit(obj::Instr{<:AgilentPowerSupply}; chan=0)
This will return the current limit of a device.
Arguments
-obj::Instr{<:AgilentPowerSupply}
: Power Supply Instrument
Keywords
chan=0
: If not provided it will use the default channel (seeset_channel
) Otherwise this can be a string or int: 1, 2, 3 .. to n where n is the total number of channels
Returns
Current Limit
TcpInstruments.get_output_status
โ Methodget_output_status(obj::Instr{<:AgilentPowerSupply})
This will return the state of an output on a device.
If the device has multiple channels is will display the state of the currently selected channel. To see the channel that will read use the get_channel
function.
If you want to see the state of a different channel, first use set_channel
to choose the channel. Running this function subsequently will disable that channel
Arguments
obj::Instr{<:AgilentPowerSupply}
: Power Supply Instrument
Returns:
String
: {"OFF"|"ON"}
TcpInstruments.get_voltage
โ Methodget_voltage(obj::Instr{<:AgilentPowerSupply}; chan=0)
This will return the voltage of a device's channel.
Arguments
obj::Instr{<:AgilentPowerSupply}
: Power Supply Instrument
Keywords
chan=0
: If not provided it will use the default channel (seeset_channel
) Otherwise this can be a string or int: 1, 2, 3 .. to n where n is the total number of channels
Returns:
- Voltage
TcpInstruments.set_channel
โ Methodset_channel(obj::Instr{<:AgilentPowerSupply}, chan)
This will set the global channel on a device.
Any commands like set_voltage that affect the device with respect to a specific channel will be impacted by this command.
By setting the channel on a device, all subsequent commands will operate on that channel unless they allow for an optional channel argument.
Parameters:
- obj
- must be a Power Supply Instrument
- chan
- This can be a string or int: 1, 2, 3 .. to n
Supported Instruments:
- Power supply
Returns: Nothing
TcpInstruments.set_current_limit
โ Methodset_current_limit(obj::Instr{<:AgilentPowerSupply}, num::Current; chan=0)
This will change the current limit of a device on a given channel
Arguments
obj::Instr{<:AgilentPowerSupply}
: Power Supply Instrumentnum::Current
: Desired current limit of type Unitful Amps: 1.0u"A"
Keywords
chan=0
: If not provided it will use the default channel (seeset_channel
) Otherwise this can be a string or int: 1, 2, 3 .. to n where n is the total number of channels
TcpInstruments.set_voltage
โ Methodset_voltage(obj::Instr{<:AgilentPowerSupply}, num::Voltage; chan=0)
This will change the voltage output voltage of a device.
Arguments
obj::Instr{<:AgilentPowerSupply}
: Power Supply Instrumentnum::Voltage
: integer or decimal of the desired voltage
Keywords
chan=0
: If not provided it will use the default channel (seeset_channel
) Otherwise this can be a string or int: 1, 2, 3 .. to n where n is the total number of channels
SRS Power Supply
This device needs a gpib adapter
As of right now the prologix adapter interface is the only supported adapter.
Connect your power supply to a prologix adapter then initialize using the GPIB_ID
keyword argument.
If you do not know the GPIB Channel ID you can initialize your device without that flag. Then run scan_prologix
on your device. This will tell you what channel is connected then manually you can use the set_prologix
function to set the channel.
TcpInstruments.disable_output
โ Methoddisable_output(obj::Instr{<:SRSPowerSupply})
This will disable an output on a device.
Arguments
obj::Instr{<:SRSPowerSupply}
: Power Supply Instrument
TcpInstruments.enable_output
โ Methodenable_output(obj::Instr{<:SRSPowerSupply})
This will enable an output on a device.
Arguments
obj::Instr{<:SRSPowerSupply}
: Power Supply Instrument
TcpInstruments.get_current_limit
โ Methodget_current_limit(obj::Instr{<:SRSPowerSupply})
This will return the current limit of a device.
Arguments
obj::Instr{<:SRSPowerSupply}
: Power Supply Instrument
Returns
Current Limit
TcpInstruments.get_output_status
โ Methodget_output_status(obj::Instr{<:SRSPowerSupply})
This will get and return whether the output from SRSPS310 is enabled.
Arguments
obj::Instr{<:SRSPowerSupply}
: Power Supply Instrument
Returns
String
: "ON" if High Voltage Output is On "OFF" if High Voltage Output is Off
TcpInstruments.get_voltage
โ Methodget_voltage(obj::Instr{<:SRSPowerSupply})
This will return the voltage of a device
Voltage Limit: 1250V
Arguments
obj::Instr{<:SRSPowerSupply}
: Power Supply Instrument
Returns
Voltage
TcpInstruments.get_voltage_limit
โ Methodget_voltage_limit(obj::Instr{<:SRSPowerSupply})
This will return the voltage limit of a device
Voltage Limit: 1250V
Arguments
obj::Instr{<:SRSPowerSupply}
: Power Supply Instrument
Returns
Voltage
TcpInstruments.set_current_limit
โ Methodset_current_limit(obj::Instr{<:SRSPowerSupply}, num::Current)
This will change the current limit of a device
MIN Value: 0 Max Value: { 2.1e-3 | 0.021 } (21mA)
Arguments
obj::Instr{<:SRSPowerSupply}
: Power Supply Instrument
TcpInstruments.set_voltage
โ Methodset_voltage(obj::Instr{<:SRSPowerSupply}, volt::Voltage; [delta_volt::Voltage, delta_time::Time, verbose::Bool])
Sets the output voltage output of a SRSPS310 power supply.
Arguments
obj::Instr{<:SRSPowerSupply}
: Power Supply Instrumentv_end::Voltage
: voltage
Keywords
delta_volt::Voltage=Inf*u"V"
: sets the maximum of each voltage step can be used to set the ramping speed when setting a new voltage.delta_time::Time=100u"ms"
: sets the minimum time between each voltage update can be used to set the ramping speed when setting a new voltage.verbose::Bool=false
: when true prints info on ramping speed and steps
Units are handled by the package Unitful
.
Currently set voltage limits can read using get_voltage_limit()
.
Examples:
julia> psu_h = initialize(SRSPS310)
julia> set_voltage(psu_h, 11.1u"V")
julia> set_voltage(psu_h, 1100"mV")
julia> set_voltage(psu_h, 100"V", delta_volt = 2u"V", delta_time=100u"ms", verbose=true)
TcpInstruments.set_voltage_limit
โ Methodset_voltage_limit(::SRSPS310, voltage_limit)
This will change the voltage limit of a device.
Max Voltage Limit: 1250V
Arguments
obj::Instr{<:SRSPowerSupply}
: Power Supply Instrumentnum::Voltage
: voltage limit
Versatile Power Supply
TcpInstruments.disable_output
โ Methoddisable_output(obj::Instr{<:VersatilePowerSupply})
This will disable an output on a device.
Arguments
obj::Instr{<:VersatilePowerSupply}
: Power Supply Instrument
TcpInstruments.enable_output
โ Methodenable_output(obj::Instr{<:VersatilePowerSupply})
This will enable an output on a device.
Arguments
obj::Instr{<:VersatilePowerSupply}
: VersatilePowerSupply
TcpInstruments.get_current_limit
โ Methodget_current_limit(obj::Instr{<:VersatilePowerSupply})
This will return the current limit of a device.
Supported Instruments:
- Power supply
Returns
Current Limit
TcpInstruments.get_output_status
โ Methodget_output_status(obj::Instr{<:VersatilePowerSupply})
This will return the state of an output on a device.
Arguments
obj::Instr{<:VersatilePowerSupply}
: Power supply instrument
Returns
String
: {"OFF"|"ON"}
TcpInstruments.get_voltage
โ Methodget_voltage(obj::Instr{<:VersatilePowerSupply})
This will return the voltage of a device
Supported Instruments:
- Power supply
Returns
Voltage
TcpInstruments.local_mode
โ Methodlocal_mode(obj::Instr{<:VersatilePowerSupply})
Set device to remote mode
TcpInstruments.remote_mode
โ Methodremote_mode(obj::Instr{<:VersatilePowerSupply})
Set device to remote mode
TcpInstruments.set_current_limit
โ Methodset_current_limit(obj::Instr{<:VersatilePowerSupply}, num::Current)
This will change the current limit of a device
Arguments
- `obj::Instr{<:VersatilePowerSupply}: Power supply
num::Current
: current limit
TcpInstruments.set_voltage
โ Methodset_voltage(obj::Instr{<:VersatilePowerSupply}, num::Voltage)
This will change the voltage output of a device.
Supported Instruments:
- Power supply
Returns
Nothing
Waveform Generator
TcpInstruments.Keysight33612A
โ TypeSupported functions
get_output_status
set_output_on
set_output_off
get_frequency
set_frequency
get_amplitude
set_amplitude
get_voltage_offset
set_voltage_offset
get_mode
set_mode_cw
set_mode_burst
get_burst_mode
set_burst_mode_trigger
set_burst_mode_gated
get_burst_num_cycles
set_burst_num_cycles
get_burst_period
set_burst_period
Not yet implemented
get_time_offset
set_time_offset
Example for creating a sin wave:
wg = initialize(Keysight33612A, [ip_address])
set_mode_cw(wg)
set_function(wg, "SIN")
set_frequency(wg, 1u"kHz")
set_amplitude(wg, 0.1u"V")
set_voltage_offset(wg, 0u"V")
set_output_on(wg)
TcpInstruments.KeysightWaveGen
โ TypeSupported functions
get_output_status
set_output_on
set_output_off
get_frequency
set_frequency
get_amplitude
set_amplitude
get_voltage_offset
set_voltage_offset
get_mode
set_mode_cw
set_mode_burst
get_burst_mode
set_burst_mode_trigger
set_burst_mode_gated
get_burst_num_cycles
set_burst_num_cycles
get_burst_period
set_burst_period
Not yet implemented
get_time_offset
set_time_offset
Example for creating a sin wave:
wg = initialize(Keysight33612A, [ip_address])
set_mode_cw(wg)
set_function(wg, "SIN")
set_frequency(wg, 1u"kHz")
set_amplitude(wg, 0.1u"V")
set_voltage_offset(wg, 0u"V")
set_output_on(wg)
Keysight Waveform Generator
TcpInstruments.get_amplitude
โ Methodget_amplitude(wave_gen; chan=1)
Returns the peak to peak voltage for the channel [Vpp]
Arguments
obj::Instr{<:KeysightWaveGen}
: WaveformGenerator
Keywords
chan=1
: specific channel
TcpInstruments.get_burst_mode
โ Methodget_burst_mode(instr)
get_burst_mode(instr; chan=1)
Returns the burst mode of a device: "TRIG" ~ If the device is in Triggered Mode "GAT" ~ If the device is in Gated Mode
TcpInstruments.get_burst_num_cycles
โ Methodget_burst_num_cycles(instr)
get_burst_num_cycles(instr; chan=2)
Arguments
obj::Instr{<:KeysightWaveGen}
: KeysightWaveGen
Keywords
chan=1
: specific channel
Returns
Float64
: number of cycles burst mode is set to
TcpInstruments.get_burst_period
โ Methodget_burst_period(instr; chan=1)
Get burst period
Arguments
obj::Instr{<:KeysightWaveGen}
: KeysightWaveGen
Keywords
chan::Integer=1
: specific channel
Returns
Float64
: time between bursts [s]
TcpInstruments.get_frequency
โ Methodget_frequency(wave_gen; chan=1)
Returns the signal frequency for the channel [Hz]
Arguments
obj::Instr{<:KeysightWaveGen}
: KeysightWaveGen
Returns
Float64
: signal frequency for the channel [Hz]
TcpInstruments.get_function
โ Methodget_function(instr)
get_function(instr; chan=2)
Keywords
chan
: Specify channel: Default is 1
Returns
String
: Will return one of these shortened forms:
{SINusoid|SQUare|TRIangle|RAMP|PULSe|PRBS|NOISe|ARB|DC}
TcpInstruments.get_mode
โ Methodget_mode(instr)
get_mode(instr; chan=1)
Gets mode of KeysightWaveGen instrument
Arguments
obj::Instr{<:KeysightWaveGen}
: WaveformGenerator
Keywords
chan=1
: specific chanel
Returns
CW
: if device is in continous wavefrom modeBURST
: if device is in BURST mode
TcpInstruments.get_output_status
โ Methodget_output_status(wave_gen; chan=1)
Get the status of the front panel output connector
Returns "ON" or "OFF"
TcpInstruments.get_voltage_offset
โ Methodget_voltage_offset(wave_gen; chan=1)
Returns the voltage offset for the channel [V]
Arguments
obj::Instr{<:KeysightWaveGen}
: WaveformGenerator
Keywords
chan=1
: specific channel
TcpInstruments.set_amplitude
โ Methodset_amplitude(wave_gen; chan=1)
Set the peak to peak voltage for the channel [Vpp]
Arguments
obj::Instr{<:KeysightWaveGen}
: WaveformGeneratornum::Voltage
: peak voltage for the channel
Keywords
chan=1
: specific channel
TcpInstruments.set_burst_mode_gated
โ Methodset_burst_mode_gated(wave_gen; chan=1)
Set the burst mode of a device to Gated Mode
TcpInstruments.set_burst_mode_trigger
โ Methodset_burst_mode_trigger(wave_gen; chan=1)
Set the burst mode of a device to Triggered Mode
TcpInstruments.set_burst_num_cycles
โ Methodset_burst_num_cycles(instr, cycles)
set_burst_num_cycles(instr, cycles; chan=2)
Sets the number of cycles for burst mode
Arguments
obj::Instr{<:KeysightWaveGen}
: KeysightWaveGennum
: number of cycles for burst mode
Keywords
chan=1
: specific channel
TcpInstruments.set_burst_period
โ Methodset_burst_period(obj, duration; chan=1)
Sets burst period for KeysightWaveGen instrument
Arguments
obj::Instr{<:KeysightWaveGen}
: KeysightWaveGenduration
: The number of seconds (This value can also be "MIN" or "MAX")
Keywords
chan::Integer=1
: specific channel
TcpInstruments.set_frequency
โ Methodset_frequency(wave_gen; chan=1)
Set the signal frequency for the channel [Hz]
Arguments
obj::Instr{<:KeysightWaveGen}
: WaveformGeneratornum::Frequency
: signal frequency for the channel
Keywords
chan=1
: specific channel
TcpInstruments.set_function
โ Methodset_function(instr, func; chan=1)
Arguments
func::String
: Acceptable inputs:
{SINusoid|SQUare|TRIangle|RAMP|PULSe|PRBS|NOISe|ARB|DC}
Keywords
chan
: Specify channel: Default is 1
TcpInstruments.set_mode_burst
โ Method set_mode_burst(obj::Instr{<:KeysightWaveGen})
Changes Waveform Generator mode from continous waveform to burst
By default it sets the type of burst mode to triggered mode. Gated mode can also be set by using the optional flag:
set_mode_burst(instr; mode=:gated)
The optional trig_src flag sets the trigger source for burst triggered mode. Right now the default is Timer. To implement more trigger sources see page 130 of the manual for 33612A
Arguments
obj::Instr{<:KeysightWaveGen}
: WaveformGenerator
TcpInstruments.set_mode_cw
โ Methodset_mode_cw(instr)
set_mode_cw(instr; chan=1)
Puts the device in continuous waveform/turns off burst mode
Arguments
obj::Instr{<:KeysightWaveGen}
: KeysightWaveGen
Keywords
chan=1
: Specify channel
TcpInstruments.set_output_off
โ Methodset_output_off(wave_gen; chan=1)
Deactivate the front panel output connector
Arguments
obj::Instr{<:KeysightWaveGen}
: KeysightWaveGen
Keywords
chan=1
: specific channel
TcpInstruments.set_output_on
โ Methodset_output_on(wave_gen; chan=1)
Activate the front panel output connector
Arguments
obj::Instr{<:KeysightWaveGen}
: KeysightWaveGen
TcpInstruments.set_voltage_offset
โ Methodset_voltage_offset(wave_gen; chan=1)
Set the voltage offset for the channel [V]
Arguments
obj::Instr{<:KeysightWaveGen}
: WaveformGeneratornum::Voltage
: voltage offset
Keywords
chan
: Specify channel: Default is 1
SourceMeasureUnit
TcpInstruments.AgilentB2910BL
โ TypeSupported functions
Agilent SourceMeasureUnit
TcpInstruments.disable_autorange
โ Methoddisable_autorange(obj::Instr{<:AgilentSourceMeasureUnit}; source="voltage", channel::Integer=1)
This will disable an output channel's automatic ranging. If automatic ranging disabled, the source output is performed using the range set [SOURce]:<CURRent|VOLTage>:RANGe command.
Arguments
obj::Instr{<:AgilentSourceMeasureUnit}
: AgilentSourceMeasureUnit
Keywords
source::String="voltage"
: source outputchannel::Integer=1
: specific channel
TcpInstruments.disable_output
โ Methoddisable_output(obj::Instr{<:AgilentSourceMeasureUnit}; channel::Integer=1)
This will disable an output channel of a device.
Arguments
(obj::Instr{<:AgilentSourceMeasureUnit}
: AgilentSourceMeasureUnit
Keywords
channel::Integer=1
: specific channel
TcpInstruments.enable_autorange
โ Methodenable_autorange(obj::Instr{<:AgilentSourceMeasureUnit}; source="voltage", channel::Integer=1)
This will enable an output channel's automatic ranging.
Arguments
obj::Instr{<:AgilentSourceMeasureUnit}
: AgilentSourceMeasureUnit
Keywords
source::String="voltage"
: source outputchannel::Integer=1
: specific channel
TcpInstruments.enable_output
โ Methodenable_output(obj::Instr{<:AgilentSourceMeasureUnit}; channel::Integer=1)
This will enable an output channel of a device.
Arguments
(obj::Instr{<:AgilentSourceMeasureUnit}
: AgilentSourceMeasureUnit
Keywords
channel::Integer=1
: specific channel
TcpInstruments.get_measurement
โ Methodget_measurement(obj::Instr{<:AgilentSourceMeasureUnit}; channel::Integer=1)
Get measurement stored by start_measurement(). Returns voltage, current, resistance, and time.
Arguments
obj::Instr{<:AgilentSourceMeasureUnit}
: AgilentSourceMeasureUnit
Keywords
channel::Integer=1
: specific channel
Returns
SourceMeasureUnitData
: measurement data from AgilentSourceMeasureUnit
TcpInstruments.get_source
โ Methodget_source_mode(obj::Instr{<:AgilentSourceMeasureUnit}; channel::Integer=1)
This will get the selected channel's source output mode.
Arguments
(obj::Instr{<:AgilentSourceMeasureUnit}
: AgilentSourceMeasureUnit
Keywords
=- channel::Integer=1
: specific channel
TcpInstruments.get_source_mode
โ Methodget_source_mode(obj::Instr{<:AgilentSourceMeasureUnit}; source::String="voltage", channel::Integer=1)
This will get a source channel mode.
Arguments
obj::Instr{<:AgilentSourceMeasureUnit}
: AgilentSourceMeasureUnit
Keywords
source::String="voltage"
: sourcechannel::Integer=1
: specfic channel
Returns
Source Mode
TcpInstruments.set_current_limit
โ Functionset_current_limit(obj::Instr{<:AgilentSourceMeasureUnit}, current="default"; channel::Integer=1)
This will set the selected channel's output current limit. The limit is applied to both positive and negative current.
Arguments
(obj::Instr{<:AgilentSourceMeasureUnit}
: AgilentSourceMeasureUnit
Keywords
current="default"
: current limitchannel::Integer=1
: specific channel
TcpInstruments.set_current_output
โ Functionset_current_output(obj::Instr{<:AgilentSourceMeasureUnit}, current="default"; channel::Integer=1)
This will set the selected channel's output current.
Arguments
(obj::Instr{<:AgilentSourceMeasureUnit}
: AgilentSourceMeasureUnit
Keywords
current="default"
: current limitchannel::Integer=1
: specific channel
TcpInstruments.set_current_sweep_parameters
โ Methodset_current_sweep_parameters(obj::Instr{<:AgilentSourceMeasureUnit};
start="default",
stop="default",
step="default",
channel::Integer=1)
This will set a channel's current source start, stop, step, and trigger point value for sweep output. points = span/step + 1 (where step is not 0) span = stop - start
Arguments
obj::Instr{<:AgilentSourceMeasureUnit}
: AgilentSourceMeasureUnit
Keywords
start="default"
: channel's current court startstop="default"
: channel's current court stopstep="default"
: channel's current court stepchannel::Integer=1
: specific channel
TcpInstruments.set_measurement_duration
โ Methodset_measurement_duration(obj::Instr{<:AgilentSourceMeasureUnit}; aperture="default", channel::Integer=1)
This will set an output channel's integration time for one point measurement. Measurement type is not important since time value is common for voltage, current, and resistance. If value set is less than MIN or greater than MAX, time is automatically set to MIN or MAX.
Arguments
obj::Instr{<:AgilentSourceMeasureUnit}
: AgilentSourceMeasureUnit
Keywords
aperture="default"
: measurement typechannel::Integer=1
: specific channel
TcpInstruments.set_measurement_mode
โ Methodset_measurement_mode(obj::Instr{<:AgilentSourceMeasureUnit};
chan= 1, current=false, voltage=false, resistance=false
)
This will enable the selected channel's specified measurement functions. Enabling resistance will enable voltage and current measurement modes as well.
Arguments
obj::Instr{<:AgilentSourceMeasureUnit}
: AgilentSourceMeasureUnit
Keywords
voltage=false
: does not enable channel's specified functionscurrent=false
: does not enable channel's specified functionsresistance=false
: does not enable channel's specified functionschannel::Integer=1
: specfic channel
TcpInstruments.set_measurement_range
โ Methodset_measurement_range(obj::Instr{<:AgilentSourceMeasureUnit}, range; channel::Integer=1)
This will set an output channel's measurement range.
Arguments
obj::Instr{<:AgilentSourceMeasureUnit}
: AgilentSourceMeasureUnitrange
: range for channel's measurement
Keywords
channel::Integer=1
: specific channel
TcpInstruments.set_measurement_range
โ Methodset_measurement_range(obj::Instr{<:AgilentSourceMeasureUnit}; measurement::String="voltage", range="default", channel::Integer=1)
This will set an output channel's measurement range.
Arguments
obj::Instr{<:AgilentSourceMeasureUnit}
: AgilentSourceMeasureUnit
Keywords
measurement::String="voltage"
: measurement typerange::String="default"
`: range for channel's measurementchannel::Integer=1
: specific channel
TcpInstruments.set_source
โ Methodset_source(obj::Instr{<:AgilentSourceMeasureUnit}; source="voltage", channel::Integer=1)
This will set the selected channel's source output mode.
Arguments
(obj::Instr{<:AgilentSourceMeasureUnit}
: AgilentSourceMeasureUnit
Keywords
source::String="voltage""
: channel's output modechannel::Integer=1
: specific channel
TcpInstruments.set_source_mode
โ Methodset_source_mode(obj::Instr{<:AgilentSourceMeasureUnit}; source::String="voltage", mode="fixed", channel::Integer=1)
This will set a source channel mode.
Arguments
obj::Instr{<:AgilentSourceMeasureUnit}
: AgilentSourceMeasureUnit
Keywords
source::String="voltage"
: sourcemode::String="fixed"
: modechannel::Integer=1
: specific channel
TcpInstruments.set_voltage_limit
โ Functionset_voltage_limit(obj::Instr{<:AgilentSourceMeasureUnit}, voltage="default"; channel::Integer=1)
This will set the selected channel's output current limit. The limit is applied to both positive and negative voltage.
Arguments
(obj::Instr{<:AgilentSourceMeasureUnit}
: AgilentSourceMeasureUnit
Keywords
voltage="default"
: voltage limitchannel::Integer=1
: specific channel
TcpInstruments.set_voltage_output
โ Functionset_voltage_output(obj::Instr{<:AgilentSourceMeasureUnit}, voltage="default"; channel::Integer=1)
This will set the selected channel's output voltage.
Arguments
(obj::Instr{<:AgilentSourceMeasureUnit}
: AgilentSourceMeasureUnit
Keywords
voltage="default"
: channel's output voltagechannel::Integer=1
: specific channel
TcpInstruments.set_voltage_sweep_parameters
โ Methodset_voltage_sweep_parameters(obj::Instr{<:AgilentSourceMeasureUnit};
start="default",
stop="default",
step="default",
channel::Integer=1)
This will set a channel's voltage source start, stop, step, and trigger point value for sweep output. points = span/step + 1 (where step is not 0) span = stop - start
Arguments
obj::Instr{<:AgilentSourceMeasureUnit}
: AgilentSourceMeasureUnit
TcpInstruments.spot_measurement
โ Methodspot_measurement(obj::Instr{<:AgilentSourceMeasureUnit}, measurement::String="voltage"; channel::Integer=1)
Executes a spot (one-shot) measurement and returns the measurement result data.
Arguments
obj::Instr{<:AgilentSourceMeasureUnit}
: AgilentSourceMeasureUnit
Keywords
measurement::String
: measurementchannel::Integer=1
: specific channel
Returns
attach_unit!
: measurement result data
TcpInstruments.spot_measurement
โ Methodspot_measurement(obj::Instr{<:AgilentSourceMeasureUnit}; channel::Integer=1)
Executes a spot (one-shot) measurement and returns valid voltage, current, and resistance if type is not specified.
Arguments
obj::Instr{<:AgilentSourceMeasureUnit}
: AgilentSourceMeasureUnit
Keywords
channel::Integer=1
: specific channel
Returns
Array
: valid voltage, current, and resistance if type is not specified
TcpInstruments.start_measurement
โ Methodstart_measurement(obj::Instr{<:AgilentSourceMeasureUnit}; channel::Integer=1)
Initiates the specified device action for the specified channel. Trigger status is changed from idle to initiated. Adjust voltage and current limit if necessary.
Arguments
obj::Instr{<:AgilentSourceMeasureUnit}
: AgilentSourceMeasureUnit
Keywords
channel::Integer=1
: specific channel