Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

transmit data to two CAN ports

Hai
     I want to send data to 2 devices at a time, one is connected to CAN0 & the other is connected to CAN1, and both has different arbitation ID.
how to do this.
thanks
sk
 
_____________
I am using LabVIEW 7.1 & NI PCMCIA CAN card
 
0 Kudos
Message 1 of 4
(4,221 Views)

Hi

You have to initialize both ports and write the frames to the port you would like to send your frames. Thats it. 😉

DirkW

0 Kudos
Message 2 of 4
(4,206 Views)

Hi,

Do you have a two port PCMCIA CAN board? You should be able to modify the examples that shipped with the NI-CAN driver to write to two ports. You would set up two separate tasks (if you were using the Channel API), one for each port. What API are you using to communicate with the devices? The Channel API or the Frame API?

Regards,

Missy S.
Project Engineer
RoviSys
Message 3 of 4
(4,207 Views)

Hi

I am using Frame API, i am using NI PCMCIA-CAN/2 series 2 CAN card it has two ports.

thanks

sk

0 Kudos
Message 4 of 4
(4,197 Views)