LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW, Can I synchronize a cDAQ device (9231) and a CAN device (9862) in the same chassis (9174)

If I can, can someone share a sample LabVIEW code?

Thanks.

Ian

 

 

0 Kudos
Message 1 of 4
(2,654 Views)

Hi Ren,

 

in which way do you want to sync those modules?

 

- Do you want to measure some analog data for each CAN message? Or for specific CAN messages?

- How accurate do you need to sync? ms, µs or ns? (Which CAN baudrate do you use?)

- Your NI9231 uses a delta-sigma ADC, which is hard to sync with other devices. Other kind of ADCs are easier to sync…

Best regards,
GerdW


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

GerdW,

Thanks for your response. I want to

1) measure a few (10-20) analog data signals for specific CAN messages. The CAN signals are updated at 100Hz rate.

2) start CAN and DAQ at the same time (by the same trigger signal, which I have found doable from the XNET example).

3) An accuracy about 1-2 ms is acceptable. The baudrate is 500kHz.

4) If I cannot sync 9231 with 9862 acquisition from the same clock base, and I just start CAN and DAQ by the same trigger, do you have a feel how long I could run data acquisition before the CAN and analog signals would be out of synch for more than 1-2 ms? module 9231 and 9862 are in the same 9174 chassis.

 

Thanks.

 

Ian

 

0 Kudos
Message 3 of 4
(2,604 Views)

CAN will be acquiring data at 256Hz, so an synch error of one sample, i.e., 4ms, is acceptable.

0 Kudos
Message 4 of 4
(2,596 Views)