Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Running CAN examples without CAN card?

Hello!

Is it possible running the CAN examples, CAN programs of NI in Labview on a machine without CAN card?
My home computer haven't got a CAN card, but I am going to test my application at home, too.

Thanks:
Laszlo Gosztola
0 Kudos
Message 1 of 5
(4,728 Views)
Hi ghost,
 
the NI-CAN driver 2.3 or later comes with a virtual interface. (CAN256, 257). These virtual ports can be used without any CAn Hardware.
Read the handbook for further restrictions.
 
DirkW
0 Kudos
Message 2 of 5
(4,721 Views)
Would anyone happen to have an example of how to do this?  I set my can interface to CAN256 and I get the following error from my code:

-1074388457 which is generated by:
CAN Initialize.vi

I have version 2.3.3f0 installed of the drivers.
0 Kudos
Message 3 of 5
(4,449 Views)

Hi,

If the error number is correct it means:

" You initialized a CAN channel that is represented as an integer larger than 52 bits in the CAN message. The limit for integer channels is 52 bits. Solution: Reduce the number of bits for the channel to 52 bits or less."

That means the virtual port works but your channel seems to be to large?

DirkW

0 Kudos
Message 4 of 5
(4,443 Views)
The reason I posted this initially was because my vi works when hardware is present.  Still doesn't mean I am using it incorrectly, but I guessed that if it worked with hardware present, it would work with it not present.  Anyhow, if I get to figuring out why it isn't working correctly, I will post something. 
 
I still think an example is needed for how to use this functionality  as it could greatly enhance the ability to develop applicaitons witout requiring hardware present.
0 Kudos
Message 5 of 5
(4,421 Views)