LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Interfacing with PXI-8531 using J1939 in LabView

We have a PXIe-8881 embedded controller with NI Linux RT and a PXI-8531 CANOpen Interface Module. We want to use J1939 protocol to interface with our CAN device. 

I was able to read raw CANopen messages with the CANopen Read CAN Frame.vi example using NI-Ind Com for CANopen driver. Are there any drivers I can use for J1939? Is there a way to filer COB-IDs so I'm only reading J1939 based messages? What would be the best method to go about this on LabView?

0 Kudos
Message 1 of 5
(210 Views)

Hi purple,

 

you better use a plain CAN card instead of this specific CANopen card…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(189 Views)

Hi GerdW,

 

Thank you for your response. 

We are using the PXI-8531 since our CANopen device can utilize CANopen and J1939. We would prefer using J1939 if possible. Would interfacing with the PXI-8531 using J1939 on LabView not be possible? Both are higher layer protocols above CAN physical layer...

0 Kudos
Message 3 of 5
(163 Views)

Hi purple,

 

CANopen uses 11bit ArbIDs, J1939 uses 29bit ArbIDs...

 

I never used this CANopen card, so you better read its manual to learn as about its capabilities.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(156 Views)

@purple15 wrote:

Hi GerdW,

 

Thank you for your response. 

We are using the PXI-8531 since our CANopen device can utilize CANopen and J1939. We would prefer using J1939 if possible. Would interfacing with the PXI-8531 using J1939 on LabView not be possible? Both are higher layer protocols above CAN physical layer...


Theoretically possible but the NI-IndComms for CANopen driver does not support J1939 and you would need to develop the entire J1939 application layer yourself.

The easiest way is to use NI-XNET hardware like PXI-8513 which has native support of J1939.

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
Message 5 of 5
(123 Views)