Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

CAN bus monitor

Hello
 
In one of our application i have to monitor the CAN bus and use that data for some calculation / validation. My question is How to read the bus monitor data programmatically.
 
please reply as soon as possible
 
regards
J
0 Kudos
Message 1 of 5
(4,750 Views)
Hi,
 
If you mean the Bus Monitor, which is integrated into MAX, there is a KB available, showing how to call the BM programaticaly. See the following Link:
If you need to access the data within your programm, you need to programm your own busmonitor using our NI-CAN api. The driver brings some examples showing the basic concept for this.
 
DirkW
0 Kudos
Message 2 of 5
(4,736 Views)

Hi DirkW

Thanks for the reply.Yes your right, i want to access the bus monitor data within the program. I am not able to find the exapmles.I shall be very thankfull if you send some examples & releated document to me.

Please reply as soon as possible

Regards,

J

0 Kudos
Message 3 of 5
(4,710 Views)
You didnt mention which development environment you are using, but normaly the driver brings examples for LabVIEW, CVI, Borland C, VB and C++.
Attached you can find a basic monitor example for LabVIEW.
The BUS Monitor can be called as shown in the KB above but you can not use the data within your program. But the monitor is able to log the data to your disc.
 
DirkW
0 Kudos
Message 4 of 5
(4,700 Views)

Hi DirkW

I am using Labview 8.0.The example given by you is working fine.

Thank you very much

Regards

J

0 Kudos
Message 5 of 5
(4,667 Views)