LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Command message to CAN bus?

Hey I'm using NI USB-8473 adapter. Am I able to send command message to can bus with USB-8473? I have a battery charger which need to  be configured via CAN bus.

 

Here is an example message:

 

m e 0x0240f010 3 0x01 0x80 0xFF sets current at 50 % and voltage at
100 %.
DLC  CMD ID    PARAM 0   PARAM 1    Meaning
3       0x01        I                U                Set current and voltage

 

I've used a program that is attached and not sure did it work. Is there any example program which fit to this purpose or something?

 

Thanks!

0 Kudos
Message 1 of 2
(2,241 Views)

I don't see anything wrong with the VI you attached, other than the overly bright colors. The sample command looks straightforward: you're sending three bytes with arbitration ID 0x0240f010. Those bytes are the command ID (0x01), the current (0x80, which is half of 0xFF = 50%), and the voltage (0xFF = maximum value for one byte, 100%).

 

Have you looked through the CAN examples provided with LabVIEW? Look at the Example Finder under the help menu, search for CAN.

0 Kudos
Message 2 of 2
(2,197 Views)