How to work on 2D array?

Comprehensive CAN monitor for Windows® and its add-ins: Plotter, CANdb Import, Instruments Panel, and J1939
Post Reply
chevy
Posts: 1
Joined: Fri 30. Sep 2016, 15:20

How to work on 2D array?

Post by chevy » Fri 30. Sep 2016, 15:32

As shown in the following symbol file code.

---------------------------------------------
FormatVersion=5.0 // Do not edit!

{ENUMS}

Enum Group(1="Group1",
2="Group2",
3="Group3")

Enum Group1(1="G11",
2="G12",
3="G13",
4="G14",
5="G15" )
Enum Group2(1="G21",
2="G22",
3="G23",
4="G24",
5="G25" )
Enum Group3(1="G31",
2="G32",
3="G33",
4="G34",
5="G35" )


{SEND}
[SendSymbol]
ID=100
DLC=3
Var=G unsigned 0,8 /e:Group
Var=GG unsigned 8,8 ????
Var=Value unsigned 16,8
---------------------------------------------

How can we write the symbol file to setup GG (ENUM of Group1 or Group2 or Group3) by using the selected Group (G) automatically ?

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: How to work on 2D array?

Post by M.Maidhof » Tue 4. Oct 2016, 16:02

Hi,

you have to use a 16bit variable, and define enum values for all possible combinations.

regards

Michael

Post Reply