LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending Data Over CAN in Cyclic Mode

Hello everyone,


I am transmitting data over CAN using LabVIEW. My requirement is to configure the transmission in cyclic mode, so that even if the LabVIEW code is stopped, the CAN bus continues sending data.

 

Currently, I am using Frame Out Stream, and I have also tried Frame Out Single‑Point. However, when I stop the CAN code and power cycle my UUT, I no longer see CAN data being transmitted.

 

Could you please suggest what can be done to achieve this requirement? Any guidance or examples would be greatly appreciated.

 

Thanks in advance!

0 Kudos
Message 1 of 4
(79 Views)

Which model of NI-XNET hardware are you using?

What is the purpose of continue sending the frames after stopping the LabVIEW?

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
-------------------------------------------------------
https://github.com/ZhiYang-Ong
0 Kudos
Message 2 of 4
(61 Views)

Hi,
I am working with the NI USB‑8502 XNET CAN interface.


The reason I need the frames to continue transmitting even after LabVIEW has stopped is because we are performing a Loss of CAN test, which requires CAN data to be sent continuously.

0 Kudos
Message 3 of 4
(56 Views)

I don't understand how a loss of CAN test requires a continuous transmission instead of stopping the transmission.

 

Anyway, the moment you stop the LabVIEW code, all XNET sessions are cleared automatically. Any specific reason you must stop the LabVIEW code and can't design a state machine such that you can pause other operation but keep CAN going?

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
-------------------------------------------------------
https://github.com/ZhiYang-Ong
0 Kudos
Message 4 of 4
(33 Views)