How to Access CAN Signals with a Script?
There are two options:
The first possibility: Using the keyword "mbuffer[x]" in the script.
"mbuffer[x]" returns the measurement value of the object from the location specified (index). The last measured value gets the index 0.
The second possibility: Using a global variable as a buffer and a function:
- define a global variable
- create a function that receives the value of the CAN signal and assign it to the global variable.
- measure this variable and insert this function into the measurement list (under "function").