Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I communicate with my PCI-CAN card using VB? I need to write a program to send and receive messages over CAN.

How do I communicate with my PCI-CAN card using VB? I need to write a program to send and receive messages over CAN.
I am using a 2 port PCI CAN device with NI-CAN 1.4 software. The card passes diagnostics, but I am unable to get any example programs to work. (obj2obj) There was very little documentation supplied with the part, so I can't be sure if I am missing something?
0 Kudos
Message 1 of 2
(4,891 Views)
Hello,
At present we only have a single example " obj to obj" written in VB . I've attached the example below, so you can try and run the example. The NI CAN programmers' reference manual contains a detailed description of the programming aspects of CAN and all the NI CAN functions. In VB , all the functions are supported except for the readmultnet function.
Which examples are you trying to run?? What are the error messages you are getting with the examples? Also verify that the cables are correctly terminated ( if termination is required- consult the manual: " Getting Started with CAN Hardware and Software").
The manuals for CAN are available at the following web site:
"
http://search.ni.com/search/query.html?col=alldocs&qp=%2Bcontenttype%3Aproductmanual&lk=
2&layout=ProductManual&qt=CAN".

The obj to obj example should be able to give you more info on reading and writing over the CAN bus.
0 Kudos
Message 2 of 2
(4,891 Views)