LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

adding CAN signal names as an another column in the table

Hi,
i have an output table which list all the can signals. i wanted to add a column with its corresponding signal name. how to do it?.

 

The dbc file is available (I cannot share it)

RepMat_0-1754309384692.png

 

how to import the dbc?

 

0 Kudos
Message 1 of 8
(258 Views)

Hi RepMat,

 


@RepMat wrote:

i have an output table which list all the can signals. i wanted to add a column with its corresponding signal name. how to do it?.

 

The dbc file is available (I cannot share it)

 

how to import the dbc?


You can read the DBC file with any text editor as it is pure text.

You can parse the DBC quite easily on your own to get the relation between message ArbID and signals within…

 

Does the PCAN driver come with a DBC file import function?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 8
(252 Views)

no, i have the pcan basic.it doesnt have candb import. it is sold as another addin and unfortunately i dont have this addin. would it be possible to use xnet can drivers to import this dbc and display the corresponding signal in the column?

0 Kudos
Message 3 of 8
(241 Views)

Hi RepMat,

 


@RepMat wrote:

would it be possible to use xnet can drivers to import this dbc and display the corresponding signal in the column?


I guess so, I never worked with XNet. (I only used the old NI-CAN or "direct" implementation on FPGA level…)

 

You may ask Hooovahh (or read his blog)!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 8
(230 Views)

You can use the NI-XNET Database Editor and its API.

See shipping examples at Help >> Find Examples >> Hardware Input and Output >> CAN >> NI-XNET >> Databases

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
-------------------------------------------------------
https://github.com/ZhiYang-Ong
0 Kudos
Message 5 of 8
(205 Views)

It is simple enough to get the symbol names from the .dbc file.  The issue you might have is that PCAN may not provide a field that can differentiate which symbol is being accessed.

 

The data shown in your chart shows:

> Date-Time Stamp

> Hex Data

> CRO/DTO Address (Sender or receiver address)

> Type (CAN Data versus other)

> Extended (29-bit versus 11-bit identifiers)

> Echo (Repeat signal on bus)

 

None of these points to the address of a particular CAN variable (CHARACTERISTIC or MEASUREMENT).  

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
0 Kudos
Message 6 of 8
(180 Views)

i couldnt completely understand you..even the ID is not a characterestic of a signal?

0 Kudos
Message 7 of 8
(165 Views)

Hi RepMat,

 


@RepMat wrote:

even the ID is not a characterestic of a signal?


A (standard) CAN message can have upto 64 bit payload, so it can carry upto 64 signals (each on one bit).

 

You only see the complete messages in your last image, but you need to decode the payload of each message.

(IMHO it doesn't make sense to show signal names in an additional column…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 8
(160 Views)