Configuration for an instrument channel.
Attributes: name: Unique channel string identifier, used to reference the gate or contact on the device voltage_range: Min and max voltage limits (V) control_channel: Physical control channel number measure_channel: Physical measurement channel number output_mode: Output mode (dc, ac, etc.) enabled: Whether channel is enabled unit: Channel units metadata: Additional channel metadata
Value: None
Value: None
Value: None
Value: None
Value: None
Value: None
Value: None
Value: dc
Value: True
Value: V
Value: None
Instrument parameter with validation and metadata.
Attributes: name: Parameter name value: Current parameter value unit: Parameter unit validator: Value validation function getter: Value getter function setter: Value setter function metadata: Additional parameter metadata
Value: None
Value: None
Value: “
Value: None
Value: None
Value: None
Value: None
Validate parameter value.
Set parameter value with validation.
Get parameter value.
Common validators for instrument parameters.
Create a range validator.
Parameters:
Minimum allowed value
Maximum allowed value
Returns:
Validator function that checks if value is within range
Validate that value is positive.
Validate that value is negative.
Validate that value is non-zero.
Bases: abc.ABC
Base class for instrument channels with parameter management.
Attributes: name: Unique channel string identifier channel_id: Physical channel identifier config: Channel configuration parameters: Dictionary of channel parameters
Initialize instrument channel.
Return a string representation of the channel.
Return a dictionary of channel information.
Setup channel-specific parameters.
Must be implemented by subclasses to define their specific parameters.
Add a parameter to this channel.
Get parameter by name.
Set parameter value.
Get parameter value.
Bases: stanza.base.channels.InstrumentChannel
Standard control channel implementation with voltage parameter.
Provides voltage control functionality with range validation based on the channel configuration.
Initialize instrument channel.
Setup voltage parameter with range validation.
Bases: stanza.base.channels.InstrumentChannel
Standard measurement channel implementation with measurement parameters.
Provides current measurement functionality with conversion factor support for ADC-based measurements.
Initialize instrument channel.
Setup measurement parameters with validation.