Check Network Element

Checks signal value over CAN, CANFD, LIN and FlexRay with an optional mask.

Arguments Description

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

value (int, list[int]): The expected signal value. Can be a single integer or a list of integers.

mask (int, list[int], Optional): The mask(s) to apply to the received signal value(s).

Returns

bool: True if the last received value of the signal satisfies the condition; otherwise, False.

Examples

Check Network Element ${BusName}::${MsgId}::${SignalName} ${10}
Check Network Element ${BusName}::${MsgId}::${SignalName} ${0x05} ${0x04}
${values} = Create List ${0x04} ${0x00} ${0x00} ${0x00} ${0x00} ${0x00}
${masks} = Create List ${0x0F} ${0x00} ${0x00} ${0x00} ${0x00} ${0x00}
Check Network Element ${BusName}::${MsgId}::${SignalName} ${values} ${masks}