Page 1 of 1

Virtual Variable use in symbol file without macro

Posted: Tue 16. May 2017, 14:33
by Username
Hello,

I have an application with some data representing a 4 digit number that is transmitted in two separate CAN frames - 2 digits in one message, and 2 digits in another.

e.g.

Code: Select all


FormatVersion=5.0 // Do not edit this line!
Title="Untitled"

{SENDRECEIVE}

[LAST_TWO]
ID=183h	
Var=SECOND unsigned 56,4
Var=FIRST unsigned 60,4

[FIRST_TWO]
ID=182h	
Var=FOURTH unsigned 24,4
Var=THIRD unsigned 28,4

I believe I can use a virtual variable to combine the 4 digits using a macro, but I am curious if it is possible to use a virtual variable within the symbol file itself to link this data? If not, is this a feature that could be added to the symbol file format? Or is there another way to show this data being linked across messages (without a macro)?

Basically what I'd like to do is be able to provide my end-user with symbol file only that provides this data, and not require that they run a macro as well.

I'm using P-CAN Explorer v5.4.1.898, Symbol Editor v3.2.1.364

Re: Virtual Variable use in symbol file without macro

Posted: Tue 16. May 2017, 18:08
by PEAK-Support
You need a macro to combine two real signals to one virtual signal. It is not possible to combine 2 signals from different source ID´s into one.