LegacySignal
- class mtf.libs.mtf_pybinder.LegacySignal
- __init__(*args, **kwargs)
- __new__(**kwargs)
- check_value(self: mtf.libs.mtf_pybinder.LegacySignal, signal_value: int | int | float | list[int] | str, comparision: int = 0, logical_operation: int = 0, mask: int | int | float | list[int] | str = 18446744073709551615) bool
Check value
- clear_buffer(self: mtf.libs.mtf_pybinder.LegacySignal) bool
Clear observer buffer
- clear_history(self: mtf.libs.mtf_pybinder.LegacySignal) None
Clear listener history
- static configure_buffer_maxsize(max_size: int) bool
Configure max size of signal buffer
- property full_path
Get signal full path
- get_buffer(self: mtf.libs.mtf_pybinder.LegacySignal) list[tuple[int, int | int | float | list[int] | str]]
Get observer buffer
- get_history(self: mtf.libs.mtf_pybinder.LegacySignal) list[tuple[int, list[int]]]
Get listener history
- static get_instance(channel_name: str, frame_id: int | str | mtf.libs.mtf_pybinder.FrFrameIdParts, signal_name: str, pdu_name: str = '') mtf.libs.mtf_pybinder.LegacySignal
Get a pdu instance
- get_last_value(self: mtf.libs.mtf_pybinder.LegacySignal) int | int | float | list[int] | str
Get last received value
- get_latest_received_values(self: mtf.libs.mtf_pybinder.LegacySignal, last_received_buffer_size: int) list[tuple[int, int | int | float | list[int] | str]]
Get latest received values
- get_pdu(self: mtf.libs.mtf_pybinder.LegacySignal) mtf::pybinder::LegacyPdu
Get PDU instance
- get_received_values_timeout(self: mtf.libs.mtf_pybinder.LegacySignal, timeout: int) list[tuple[int, int | int | float | list[int] | str]]
Get received values timeout
- monitor_always(self: mtf.libs.mtf_pybinder.LegacySignal, signal_value: int | int | float | list[int] | str, timeout: int, comparision: int = 0, mask: int | int | float | list[int] | str | None = 18446744073709551615) bool
Monitor always
- static monitor_always_multiple(signals: list[mtf.libs.mtf_pybinder.LegacySignal], signals_values: list[int | int | float | list[int] | str], comparision: list[mtf.libs.mtf_pybinder.CompareOperation], timeout: int, mask: list[int | int | float | list[int] | str] = []) bool
Monitor always multiple signals
- monitor_happened(self: mtf.libs.mtf_pybinder.LegacySignal, signal_value: int | int | float | list[int] | str, timeout: int, comparision: int = 0, mask: int | int | float | list[int] | str | None = 18446744073709551615) bool
Monitor happened
- static monitor_happened_multiple(signals: list[mtf.libs.mtf_pybinder.LegacySignal], signals_values: list[int | int | float | list[int] | str], comparision: list[mtf.libs.mtf_pybinder.CompareOperation], timeout: int, mask: list[int | int | float | list[int] | str] = []) bool
Monitor happened multiple signals
- property name
Get pdu name
- property path
Get signal path
- set_physical_value(self: mtf.libs.mtf_pybinder.LegacySignal, signal_value: float | int | int, update_and_send: bool = True) bool
Set signal physical value
- set_raw_value(self: mtf.libs.mtf_pybinder.LegacySignal, signal_value: int | int | float | list[int] | str, update_and_send: bool = True) bool
Set signal raw value
- start_listening(self: mtf.libs.mtf_pybinder.LegacySignal, callback: Callable | None = None, on_change: bool = False) bool
- Start the data acquisition,
The pycallback should have as arg (callback: The function to call when a new payload is received ,on_change: bool) return: bool type
- start_observer(self: mtf.libs.mtf_pybinder.LegacySignal, on_change: bool = True, is_physical: bool = True) bool
Start signal observer
- stop_listening(self: mtf.libs.mtf_pybinder.LegacySignal) bool
Stop the data acquisition
- stop_observer(self: mtf.libs.mtf_pybinder.LegacySignal, get_values: bool) list[tuple[int, int | int | float | list[int] | str]]
Stop signal observer
- static stop_observer_multiple(signals: list[mtf.libs.mtf_pybinder.LegacySignal]) None
Stop multiple signal observers