LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sync CAN and AI DAQ hardware

Helo Experts,

I have a requirement to sync CAN based encoder data and other analog input channels into 1 program and write data to a file @ 1000Hz. 

 

I am not sure how the timestamps on the CAN based NI devices (like NI USB-8473s) and NI USB 6343 would be synchronized? Has anyone has any experience in handling these 2 DAQ hardware at the same time and write data to a file? 

 

I have seen some articles:

https://www.ni.com/en/support/documentation/supplemental/06/the-ni-can-channel-api.html

http://www.ni.com/tutorial/4204/en/#toc2 

 

However, I am little skeptical if my system would work, just becuase my AI DAQ hardware is not RTSI as mentioned in the examples. 

 

Secondly, is NI CAN the best approach in this scenario to couple CAN based data & AI channels going into our system?

 

Now on LabVIEW 10.0 on Win7
0 Kudos
Message 1 of 3
(2,844 Views)

There is a good example that I think will get you most of the way there.  It is under a lot of folders in the example finder so I figured I would just post a picture of where I found it.

 

CAN Sync.png

 

This example shows how to sync your CAN device with 1 DAQ device, but you should be able to use channel expansion to sync your CAN hardware to 2 DAQ devices.  If you are still having trouble, can you post the code you tried and tell us exactly what DAQ hardware you are using?

Matt J | National Instruments | CLA
0 Kudos
Message 2 of 3
(2,757 Views)

Thanks, i will try it out.

Now on LabVIEW 10.0 on Win7
0 Kudos
Message 3 of 3
(2,733 Views)