Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Canbus traffic monitoring problem

As a part of a test application I want to have an indicator that shows abolutely all traffic on the CAN network...receive and transmit...I can use the Read Multiple Interface Object VI on a separate port to do this, however I want to only use one port....the problem then however is to also register the outgoing traffic....and to fetch incoming traffic that is also read for other purposes other places in the code using Read Object...

Unless there is a way to make Read Multiple or some other of the NICAN VIs to do this, I can solve the problem by making an additional VI that I feed everything I send out...and the objects I also read other places in the code...and merge that data with the data from the Read Multiple Interface Object VI.
..but is there not a more elegant way to do this?
0 Kudos
Message 1 of 3
(4,043 Views)
Hello-

This sounds pretty good so far. Datasocket could probably help a lot in this situation. Datasocket can be used to send info concerning incoming and outgoing CAN messages to any other process, even processes on other machines. This can get very tricky when doing a periodic transmit. It might help to have a while loop that constant monitors for a read available. Then, writes the read CAN message through Datasocket.

Randy Solomonson
Application Engineer
National Instruments
0 Kudos
Message 2 of 3
(4,043 Views)
How to do that in VC++? ther is no Datasocket there.

James
0 Kudos
Message 3 of 3
(4,043 Views)