Showing results for 
Search instead for 
Did you mean: 

Write then read the same CAN signals

Hello NI community members,


I want to create a vi that does the following 2 tasks:

1) write CAN signals to a CAN bus (interface CAN1)

2) read all frames on that same CAN bus - including the ones that it wrote


(Note that all the signals I am reading/writing in the vi are listed as both Rx (recieve) and Tx (transmit) on the dbc file for them. You can find more information about the database in the block diagram for the vi.)


This seems pretty straightforward and creating 2 XNET sessions - one to write signals and one to read in stream frames - both with CAN1 as their interface should work. 


So far I am able to write the signal data successfully. I am attaching a snippet of the CAN bus trace I captured on CANalyzer and you will see that the messages from "LabVIEW_node" are present on it. These are the messages that I created on LabVIEW (vi attached below) through an XNET write signal single-point session.

can bus trace.PNG


The CAN bus has additional frames (from nodes such as vcu) that you will also see on this trace.

I am able to read these messages on LabVIEW - through an XNET read frame CAN in stream session. Here is a snippet of the front panel of the vi after I ran it for a few seconds. You will notice that the input frames display the x61x messages from nodes such as vcu, ipcimVie and becmA123.

vi front panel.PNG

The issue is that I cannot read the frames that I created on LabVIEW. If I disconnect other CAN enabled devices, and only have the LabVIEW vi running, the input frame array is completely blank. 


Would anyone happen to know why I can read frames from external nodes, but not the ones that I wrote through LabVIEW even though they are being transmitted to the CAN bus? 

I would extremely appreciate any insight on this issue. 


Also, I went through other NI community posts regarding similar issues, but was unable to find a solution that works for me. The vi that I created is, in fact, very close to one that I found as solution to a similar problem. Here is the link to that post -


Looking forward to hearing from you all.


Thank you!



0 Kudos
Message 1 of 3



try to set Echo Transmit to True:



Regards, Jens

Kudos are welcome...
0 Kudos
Message 2 of 3

Thank you for your feedback.

I set the eco transmit to true but it is resulting in the following error.

error 1.PNG

I tried setting some other properties too to help resolve the error but it's still not working.


Would you happen to know what is going wrong here? 


Thank you!

0 Kudos
Message 3 of 3