LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI XNET

Hi,

 

I am pretty new to both CAN and Labview. I would appritiate it if you can help me to get around this problem:


I have a NI PCI 8512/2 CAN card on my PC from which I am trying to send signals to a laptop with Vector CANcard XL interface.
CANanalyzer is in running mode on the laptop side.

When I "Transmit Single Frame on CAN" (in a cyclic manner) from "NI XNET Bus Monitor" (with termination checked), I can see the correct frames received in CANalyzer trace window and no error frames. But when I send the same frame with a Labview VI (the very simple VI I attached), CANalyzer receives Error frames instead. Consider that the waiting time in the while loop is quite long and so the CAN Comm State begins with Error Active and changes into Error Passive state after a short time (in less than 2 seconds). Then the last error is Stuff and receive error counter is 128.

But What does MAX do that my VI does not?

0 Kudos
Message 1 of 2
(2,366 Views)

Well, the problem is solved!

The default value for termination in Hi speed CAN is off. I changed it into on and it worked.

:womanhappy:

0 Kudos
Message 2 of 2
(2,358 Views)