enum functionality with a .dbc file

  • Software
  • enum functionality with a .dbc file
Robert Valk

Posted on 02.09.2016 11:38

Hello,


I have a .dbc file with enum functionally(translates a number to a text) .

for example: when the number 8 is given I want the text "calibration fault" to be shown.

I do I get this to work and to show in the measurement display?


thank you in advance,

Robert

DEWESoft Support
Technical support
Posted on 02.09.2016 12:44

Hi,

I'm not sure about the relation of this function to the .dbc file, but the visual control "Indicator lamp" offers the functionality that you're looking for. When you assign a channel to this visual control and change it's display mode to discrete, you will be able to define what the visual control will display for each value. In your case, you would set the message "Calibration fault" to be displayed when the channel outputs a number 8. You can also add custom pictures for each value.


Attached files:
Robert Valk

Posted on 07.09.2016 08:53

thank you for this solution.

but we have seen in the previous software version that with just the DBC file loaded, which contained the enum function for certain signals, these were indicated as shown by the attached example. (example shows the "egrhealthstatus" to give "OK" which is the sentence to give for 0.)

but for some reason we don't see this same function working in the X2 software?


Attached files:
DEWESoft Support
Technical support
Posted on 07.09.2016 14:13

Hi,

thank you for the example picture. I was able to reproduce the same behavior on my PC, and it seems like a bug. However, everything seems to be working correctly in measurement mode. If you use the instructions above and assign the CAN channel to the indicator lamp visual control and change the display mode to discrete, you will be able to see the text that is defined in the .dbc file. Also, if you click on the define button, all of the options from the .dbc file will be written in the table.

It seems like the bug is only present in the grid view, which was recently updated. I've added it to the bug list, so that one of our developers will be able fix it.


DEWESoft Support
Technical support
Posted on 08.11.2016 08:54

Hi,

our developer has just fixed this issue. It will be available for use whenever a new build of SP8 (RC15) gets uploaded to the webpage.

Login to reply to this topic. If you don't have account yet, you can signup for free account .