Page 1 of 1

map problem with 2D Table

PostPosted: Fri Feb 24, 2023 8:19 pm
by HMeier
Hello,
i have a problem with the 2D Table mapping.
I want map a CAN Signal/Channel raw data to a new Channel with other values.
The row data is from 0 to 8000 in hex -> 0 to 32768 in decimal.
My problem is that i can only enter decimal values to 32767.
In a CAN Simulation, if i send 8000hex/32768, the Display shows a -135.
Is there a solution how to fix that or a other posibillity how to Map Signals?

Best regards

[img]
32786.png
[/img]

Re: map problem with 2D Table

PostPosted: Fri Feb 24, 2023 11:40 pm
by David Ferguson
Change your CAN comms template to be unsigned, or use 32767 (the largest signed positive value you can have in 16 bits).

Re: map problem with 2D Table

PostPosted: Fri Feb 24, 2023 11:48 pm
by David Ferguson
Another way (incorrect, but easy), would be to add an entry for -32767 (8000 in hex for a signed value) to be 45 as well.