ComSignal
- class mtf.libs.mtf_pybinder.ComSignal
Com signal class
- __init__(*args, **kwargs)
- __new__(**kwargs)
- property base_data_type
Retrieve the signal base data type.
- property bit_order
Retrieve the signal bit order.
- get_last_received_value(self: mtf.libs.mtf_pybinder.ComSignal) list[int]
Retrieve the last received value of this signal.
- get_signification_string(self: mtf.libs.mtf_pybinder.ComSignal, value: int | int | float | list[int] | str) str
Get signal signification string for the value.
- property layout_info
Retrieve the signal layout info.
- property listener
Retrieve listener of this Signal.
- set_physical_value(self: mtf.libs.mtf_pybinder.ComSignal, value: float | int | int, update_and_send: bool = True) mtf.libs.mtf_pybinder.Result
Set the physical value of the signal.
- set_raw_value(self: mtf.libs.mtf_pybinder.ComSignal, value: int | int | float | list[int] | str, update_and_send: bool = True) mtf.libs.mtf_pybinder.Result
Set the raw value of the signal.
- property short_name
Retrieve the signal short name.
- start_listening(self: mtf.libs.mtf_pybinder.ComSignal, callback: Callable[[str, mtf.libs.mtf_pybinder.mtf_timestamp, list[int]], None], on_change: bool = False) mtf.libs.mtf_pybinder.Result
Start listening to signal value received events. If “on_change” is set to True, the callback will be called only if the value of this signal has changed.
- stop_listening(self: mtf.libs.mtf_pybinder.ComSignal) mtf.libs.mtf_pybinder.Result
Stop listening to signal value received events.
- to_physical(self: mtf.libs.mtf_pybinder.ComSignal, arg0: list[int]) int | int | float | list[int] | str
Convert signal value to physical value.
- to_raw(self: mtf.libs.mtf_pybinder.ComSignal, arg0: list[int]) int | int | float | list[int] | str
Convert signal value to raw value.