hvl_ccb.dev.highland_t560.device
Module for controlling device, including TRIG, CLOCK and GATE I/Os.
- class T560(com, dev_config=None)[source]
Bases:
SingleCommDevice
- property auto_install_mode: AutoInstallMode
Check the autoinstall settings of the T560. The autoinstall mode sets how changes to device settings are applied. See manual section 4.7.2 for more information about these modes.
- property ch_a: _Channel
Channel A of T560
- property ch_b: _Channel
Channel B of T560
- property ch_c: _Channel
Channel C of T560
- property ch_d: _Channel
Channel D of T560
- static config_cls()[source]
Return the default configdataclass class.
- Returns:
a reference to the default configdataclass class
- static default_com_cls()[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 frequency: float
The frequency of the timing cycle in Hz.
- property period: float
The period of the timing cycle (time between triggers) in seconds.
- property trigger_level
Get external trigger level.
- property trigger_mode
Get device trigger source.
- class T560Config[source]
Bases:
object
- auto_install_mode = 1
- clean_values()
Cleans and enforces configuration values. Does nothing by default, but may be overridden to add custom configuration value checks.
- 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.
- 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.
- 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.