Virtual Variable use in symbol file without macro

Comprehensive CAN monitor for Windows® and its add-ins: Plotter, CANdb Import, Instruments Panel, and J1939
Post Reply
Username
Posts: 17
Joined: Fri 31. Jul 2015, 17:57

Virtual Variable use in symbol file without macro

Post by Username » Tue 16. May 2017, 14:33

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

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: Virtual Variable use in symbol file without macro

Post by PEAK-Support » Tue 16. May 2017, 18:08

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.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

Post Reply