hvl_ccb.dev.technix.device
The device class Technix and its corresponding configuration class
- class Technix(com, dev_config)[source]
Bases:
SingleCommDevice
Device class to control capacitor chargers from Technix
- static config_cls()[source]
Return the default configdataclass class.
- Returns:
a reference to the default configdataclass class
- property current: int | float
Actual current of the output in A
- default_com_cls() type[TechnixSerialCommunication] | type[TechnixTelnetCommunication] [source]
Get the class for the default communication protocol used with this device.
- Returns:
the type of the standard communication protocol for this device
- property inhibit: bool | None
Is the output of the voltage inhibited? The output stage can still be active.
- property is_started: bool
Is the device started?
- property max_current: int | float
Maximal output current of the hardware in A
- property max_voltage: int | float
Maximal output voltage of the hardware in V
- query_status(*, _retry: bool = False)[source]
Query the status of the device.
- Returns:
This function returns nothing
- property set_current: int | float
Return the set current (may differ from actual value) in A
- property set_voltage: int | float
Return the set voltage (may differ from actual value) in V
- start()[source]
Start the device and set it into the remote controllable mode. The high voltage is turn off, and the status poller is started.
- stop()[source]
Stop the device. The status poller is stopped and the high voltage output is turn off.
- property voltage: int | float
Actual voltage at the output in V
- class TechnixConfig(communication_channel: type[hvl_ccb.dev.technix.base.TechnixSerialCommunication] | type[hvl_ccb.dev.technix.base.TechnixTelnetCommunication], max_voltage: int | float, max_current: int | float, polling_interval_sec: int | float = 4, post_stop_pause_sec: int | float = 1, register_pulse_time: int | float = 0.1, read_output_while_polling: bool = False)[source]
Bases:
object
- clean_values()
Cleans and enforces configuration values. Does nothing by default, but may be overridden to add custom configuration value checks.
- communication_channel: type[TechnixSerialCommunication] | type[TechnixTelnetCommunication]
communication channel between computer and Technix
- force_value(fieldname, value)
Forces a value to a dataclass field despite the class being frozen.
NOTE: you can define post_force_value method with same signature as this method to do extra processing after value has been forced on fieldname.
- Parameters:
fieldname – name of the field
value – value to assign
- is_configdataclass = True
- classmethod keys() Sequence[str]
Returns a list of all configdataclass fields key-names.
- Returns:
a list of strings containing all keys.
- max_current: int | float
Maximal Output current
- max_voltage: int | float
Maximal Output voltage
- classmethod optional_defaults() dict[str, object]
Returns a list of all configdataclass fields, that have a default value assigned and may be optionally specified on instantiation.
- Returns:
a list of strings containing all optional keys.
- polling_interval_sec: int | float = 4
Polling interval in s to maintain to watchdog of the device
- post_stop_pause_sec: int | float = 1
Time to wait after stopping the device
- read_output_while_polling: bool = False
Read output voltage and current within the polling event
- register_pulse_time: int | float = 0.1
Time for pulsing a register
- classmethod required_keys() Sequence[str]
Returns a list of all configdataclass fields, that have no default value assigned and need to be specified on instantiation.
- Returns:
a list of strings containing all required keys.