Check Io Signal

Checks an io signal with specific type attribute_name``is received on the ``channel_path

as expected or not by making the needed comparaison with ${signal_value}

Arguments Description

channel_path (str): The channel path should be in the format: HW::HwSignalName or PS::psChannelName.

attribute_name (str): HW type: it could be: { Voltage,

Current, DutyCycle only relevant for PWM (yaml field –> MeasurementAttribute: PWM), Frequency, Power : relevant only for PS_Channel, Resistance, RawValue, ShortCutToVbat, ShortCutToGnd, OpenLoad, LowVoltage}

signal_value (int): The expected hw value.

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

CompareOperation | value | Sign |
EQ | 0 | == |
GE | 1 | >= |
GT | 2 | > |
LE | 3 | <= |
LT | 4 | < |
NE | 5 | != |
logical_operation (LogicalOperation, optional): if LogicalOperation.ALL(0), then the condition needs to be satisfied by all the received values

of the signal since the start of the signal observer.

If LogicalOperation.ONLY_ONE(1) then the condition needs to be satisfied by at least one received value since the start of the signal observer Defaults to LogicalOperation.ALL.

Returns

bool: True if one or all received values of an io signal, depending on the logical_operation argument value,

meet the specified comparison oparation with an expected value; otherwise, False.

Example

${res}= Check Io Signal HW::${HwSignalName} Voltage ${8} ${2}

Note

An observer should be started for the target io signal beforehand.