Accessing CAN Signal that Exists Several Times
In the DBC file a CAN signal exists more than one time with different CAN message IDs. To access this signal via a script/function you have to use the message and the signal name.
Syntax for working with CAN devices:
value = <Device_ID>.'$<Message_Name>$<Signal_Name>'.mbuffer;
In this example, the Device ID is “Vin”. Both CAN messages “VIN1” and “VIN3” include the CAN signal “Kanal1”.
var value, value2;
value = Vin.'$VIN1$Kanal1'.mbuffer;
value2 = Vin.'$VIN3$Kanal1'.mbuffer;
Syntax for working with MDF files:
In this example, the name of the file is “FILE1”. The message name is “VIN1”, and the channel number is “1”.
value = FILE1.Kanal1;
value = FILE1.VIN1.Kanal1;
value = FILE1.1.VIN1.Kanal1;
Please note, that Channel Number and Message Name are additional and optional.
Please complete all required fields. Fields marked with * are required.