Monitor Always Signal

Compares all received signal values during a timeout to an expected value following a specific comparison operation.

Arguments Description

signal_path (str): The signal path should be in the format: BusName::MsgId::SignalName.

signal_value (int): The signal value to be compared to.

timeout (int): The period defined as a parameter in milliseconds.

comparison (CompareOperation, optional): Each comparison sign is associated to a number value. Defaults to CompareOperation.EQ.

CompareOperation | value | Sign |
EQ | 0 | == |
GE | 1 | >= |
GT | 2 | > |
LE | 3 | <= |
LT | 4 | < |
NE | 5 | != |

mask (uint64): The mask applied to the received values during the comparison. Defaults to 0xFFFFFFFFFFFFFFFF.

Returns

bool: True, if during the timeout, All the signal received values verify the comparison operation against the expected value; otherwise, False.

Example

${res}= Monitor Always Signal ${BusName}::${MsgId}::${SignalName} ${5} ${300}

Note

  • The last received value is checked if no data point is received during the timeout.

  • No Signal observer needs to be started to monitor the signal.

  • 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.