CAN and LIN Signals may include special values that represent an error state or other logical condition, such as SNA. To use these values, create an Enum set and associate it with the Signal.

If there are Enums defined outside the min/max range of the Signal, a Boolean port for each Enum is added to the receive driver Transform. The new port is named <OriginalSignalName>_<EnumName>. For example: Frm_Slave1Counter_SNA as shown here:


To use the new Signal, export it from the receive driver and add it to your TestCase.

When the original Signal is set to a defined logical value the corresponding new logical Signal transitions to 1. It transitions back to 0 zero when the value of the original Signal is returns to its min/max range. The first Signal does not show data while a logical Signal is active.

In the example above, transitions 2 and 3 on the LIN Network 1 bus have the Signal set to SNA. When that out-of-range value is detected, and that value has an Enum defined, the corresponding Boolean Signal is set to 1, and null data is transmitted on the LIN Signal.


Related Topics:

LIN Receive Driver