Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

C sample to send CAM Message via Xnet and USB-8502 device

Solved!
Go to solution
Highlighted

C sample to send CAM Message via Xnet and USB-8502 device

We have an USB-8502 with one CAN port. We are using it to communicate with an automobile ECU. We can successfully send and receive messages using NI-XNET Bus Monitor.

 

Now we need to make a C application to exchange custom CAN messages with the ECU via the USB-8502. Could you please help us with an sample code ?

NI Certified LabVIEW Associate Developer
0 Kudos
Message 1 of 3
(757 Views)
Solution
Accepted by topic author Lahcen27
12-27-2017 12:38 PM

Re: C sample to send CAM Message via Xnet and USB-8502 device

Hi Lahcen27,

 

You can find C examples in the XNET driver folders following this file path: C:\Users\Public\Documents\National Instruments\NI-XNET\Examples\MS Visual C\CAN >> then choose an appropriate example for your application. 

More information about the XNET C examples can be found here:
Getting Started - NI-XNET 16.0 Help
http://zone.ni.com/reference/en-XX/help/372841M-01/nixnet/gettingstarted_c/  

 

Thanks!

Erika B.
Applications Engineering
National Instruments
Message 2 of 3
(716 Views)

Re: C sample to send CAM Message via Xnet and USB-8502 device

Hi Erika,

 

Thank you for your reply.

 

OK I'll see the forlder.

 

The link you sent cannot be open. I get the " Page Error" message. But I searched for "Getting Started - NI-XNET 16.0 Help"  in the search bar, then I found the the right page. Thanks !

 

Best regards

Lahcen

NI Certified LabVIEW Associate Developer
0 Kudos
Message 3 of 3
(713 Views)