Monitor Happened Signals
- Checks if one of the received values of EACH specified signal verifies
the comparison operation against the provided values during a timeout.
Arguments Description
- signals_paths (list[str]): The list of signals paths.
Each path should be in the format:
BusName::MsgId::SignalName
. ${signals_list} = Create List ${BusName1}::${MsgId1}::${SignalName1} ${BusName2}::${MsgId2}::${SignalName2}- signals_values (list[int]): The refrence values.
${expected_values} = Create List ${value1} ${value2} ${value3}
timeout (int): A defined period of time in milliseconds.
masks (list[int], optional) : 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 before the timeout elapses, there is a value among the received signals values
that verifies the comparison operation against the provided values; otherwise, False.
Example
${signal_list} = Create List ${BusName1}::${MsgId1}::${SignalName1} ${BusName2}::${MsgId2}::${SignalName2} ${BusName3}::${MsgId3}::${SignalName3}${ref_values} = Create List ${10} ${10} ${10}${Masks} = Create List ${0xFFFFFFFFFFFFFFFF} ${0xFFFFFFFFFFFFFFFF} ${0xFFFFFFFFFFFFFFFF}${comparison} = Create List ${0} ${0} ${0}${res}= Monitor Happened Signals ${signal_list} ${ref_values} ${1000} ${Masks} ${comparison}
Note
No Signal observers need to be started to monitor the signals.
If a signal observer on one of the signals 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.