Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I read and write at the same time using the NI-CAN channel API?

Here's the situation.  I have one CAN bus, and I need to read and write channel data (using the channel API) at the same time both at an interval of 20 ms.  It's easy to do one or the other using the channel API, but you can't setup a channel task to do both.  It's either input or output, not both.  Is this even possible?
0 Kudos
Message 1 of 2
(3,747 Views)

Hi,

yes , this is possible. But you have to create two tasks, one for input and one for output. see the attached example for LabVIEW.

If you download and install NI-CAN 2.4 you will get this example and one for C and VB as well.

DirkW

 

Message 2 of 2
(3,736 Views)