LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-XNET cannot find CAN1/CAN2 in LabView although they are visible in NI MAX

Solved!
Go to solution

Hi, 

 

I am trying to read an IMU connected to a NI PXI-8512 CAN interface using LabView 209 and NI-XNET 2019. 

The PXI-8512 is correctly detected in NI MAX, where I can see both CAN1 and CAN2 interfaces (see attached NI MAX screenshot).

However, when I create an NI-XNET session in LabView, I cannot select CAN1 or CAN2 from the interface dropdown.

Could someone please advise how I can correctly select/configure CAN1 (or CAN2) in LabView? 

Thank you!

NI_MAX_setup.pngNI_MAX_setup.png

labview_vi.pnglabview_vi.pnglabview_ni_can_diagram.pnglabview_ni_can_diagram.png

0 Kudos
Message 1 of 6
(291 Views)

Hi macs,

 


@macs74 wrote:

I am trying to read an IMU connected to a NI PXI-8512 CAN interface using LabView 209 and NI-XNET 2019

The PXI-8512 is correctly detected in NI MAX, where I can see both CAN1 and CAN2 interfaces (see attached NI MAX screenshot).

However, when I create an NI-XNET session in LabView, I cannot select CAN1 or CAN2 from the interface dropdown


Questions:

  • Do you use the very same versions of LabVIEW and XNet (both 2019)? LabVIEW2009 might not work with XNet2019…
  • Where do you run your VI? Does it run on your development computer or on your remote device? Unfortunately you don't provide tat information with your images…
Best regards,
GerdW


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

Hi GerdW, 

Thank you for your quick reply, 

- Yes I use the very same versions: LabView 2019 and NI-XNET 2019, sorry for the typo. 
- The VI is currently running on my development computer. 

Best regards,
macs

0 Kudos
Message 3 of 6
(263 Views)
Solution
Accepted by topic author macs74

Hi macs,

 


@macs74 wrote:

- The VI is currently running on my development computer. 


The VI must be prepared to run on your remote system!

The local system doesn't knows about any CAN ports, only the remote system can handle them…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 6
(236 Views)
Solution
Accepted by topic author macs74

To echo what GerdW has shared, make sure you have a Real-Time target in the LabVIEW project and place the VI underneath it.

ZYOng_0-1788413530992.pngZYOng_0-1788413530992.png

 

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
-------------------------------------------------------
https://github.com/ZhiYang-Ong
Message 5 of 6
(213 Views)

Thank you very much GerdW and ZYOng! Indeed it worked 🙂 

 

Best,

macs

0 Kudos
Message 6 of 6
(199 Views)