05-06-2020 11:27 AM
Dear Labview Users,
using the NI-XNET database editor I am not able to find some information on CAN description that I can found using other software (e.g. Vector CANdb++). In particular, I am not able to find the node referred by each frame and the description (as "enumeration") of the values of signals (e.g. 0 means "OFF", 1 means "ON")
I am also not able to find these pieces of information using the NI-XNET palette, for a correct interpretation of signals received.
Unfortunately, I cannot share screenshots since they contain property information of customer's communication protocol
Thank you very much for your support
05-07-2020 09:22 AM
The functionality you're referring to is "value tables" in Vector CANdb++ which I don't believe exists in NI-XNET database editor.
Workarounds I've used in the past are enums, or you can also use a variant and a string to create a lookup table. It would be a nice feature to have though.
05-07-2020 10:08 AM
You can get to these parameters. You need to use the "XNET Database Get DBC Attribute (signal).vi to get them.
05-07-2020 10:12 AM
You need to make sure you are sending the signal reference to the vi to get the correct values.
Here is how I strip the DBC file to a table so I can interact with it. I do get all of the values.
05-07-2020 10:21 AM
May I ask you where have you found that "NI-XNET info" vi? Is it a custom vi made by you?
05-07-2020 10:24 AM
Yes. I made this for the CAN stuff that we do.
05-07-2020 10:32 AM
I posted my code to show you the flow of what you should be doing to get to the table values that you are looking for. If you drill down from ECU to frames to signals you should be able to get where you want to get using the VI's that NI provides with XNET.