Monitor Always Signals
- Checks all received values for each signal from the signal paths during the same timeout
and verifies the comparison operation against the provided signal values.
Arguments Description
- signals_paths (list[str]): The list of signals paths. Each path should be in the format:
BusName::MsgId::SignalName
.${signal_list} = Create List ${BusName1}::${MsgId1}::${SignalName1} ${BusName2}::${MsgId2}::${SignalName2}
- signals_values (list[int]): The signals values.
${expected_values} = Create List ${Val1} ${Val2}
timeout (int): A period defined as a parameter in milliseconds.
masks (list[int], optional): The mask applied on the received values during comparison. Defaults to ${Masks} = Create List ${0xFFFFFFFFFFFFFFFF} ${0xFFFFFFFFFFFFFFFF} …
comparison (list[int], optional): Defaults to ${comparison} = Create List ${0} ${0} …
CompareOperation | value | Sign |EQ | 0 | == |GE | 1 | >= |GT | 2 | > |LE | 3 | <= |LT | 4 | < |NE | 5 | != |
Returns
bool: True if all signal values verify the comparison operation with the expected signal values in the same period; otherwise, False.
Example
${signal_list} = Create List ${BusName1}::${MsgId1}::${SignalName1} ${BusName2}::${MsgId2}::${SignalName2} ${BusName3}::${MsgId3}::${SignalName3}${expected_values} = Create List ${5} ${5} ${5}${Masks} = Create List ${0xFFFFFFFFFFFFFFFF} ${0xFFFFFFFFFFFFFFFF} ${0xFFFFFFFFFFFFFFFF}${comparison} = Create List ${0} ${0} ${0}${res} = Monitor Always Signals ${signal_list} ${expected_values} ${1000} ${Masks} ${comparison}
Note
The last received value is checked if no data point is received during the timeout.
No Signals observer needs to be started to monitor the signals.
If a signal observer on that signal is already active, all the received values of that observer will be cleared. Nevertheless, the observer will not be stopped after the timeout and will continue monitoring the signal.