LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CAN network and LabVIEW

Hello!

Now we have this problem: We have two CAN-cards with two CAN-ports each. We want to read data to these ports continously from a CAN-bus. We want to use Frame API because of it´s feature in this case. We have today a program were we can read from one port but the problem is now when we want to go one step forward with four CAN-ports.

Can anyone give a tip about how to set up a network with four ports and then read continously? We have tried to program this but then we get an error that tells us that we can not open two ports at the same time... so does anyone have any tip to us, please?

Thank you and best regards.
Ex-jobb
0 Kudos
Message 1 of 3
(2,741 Views)
Hi Ex-jobb,

when you got the error about not being able to open two ports at the same time, I assume you passed the same interface or port alias (CANx) to the ncOpen VI?

Take a look at the attached example. Before you run it, make sure that the four CAN ports in your system have the names CAN0..3 (MAX » Devices and Interfaces » ...).

-B2k
0 Kudos
Message 2 of 3
(2,731 Views)
Hello!

Thank you for your help! I will have a look at your example!

Best regards! Ex-jobb.
0 Kudos
Message 3 of 3
(2,719 Views)