From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

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

Solved!
Go to solution

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
(3,998 Views)
Solution
Accepted by topic author Lahcen27

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
Technical Support Engineer
National Instruments
Message 2 of 3
(3,957 Views)

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
(3,954 Views)