Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

How to synchronize NI-CAN, NI-6601, and NI-6052E on CAN message?

Hello,
I am trying in LV6.1 to collect measurements triggered from a CAN message, being received at 1kHz for < 1 minute.
The measurements I am looking to collect are:
1. The measurement data contained in the CAN message.
2. The analogue data from channel 1 on the 6052E
3. Two X4 encoder measurements on the 6601.
Is there any example that shows how to do this kind of problem with multiple boards for 1kHz logging in sync?

Regards,
Peter
0 Kudos
Message 1 of 2
(3,148 Views)
Hey Peter,

There are a few CAN examples that ship with LabVIEW that should be able to get you started. They should be broken down to the channel and frame API. I would probably use the frame API for your application.

The DAQ-AI CAN-Receive Example.vi example shows how to route the signal from the CAN device so that when a message is received it will scan the analog input. You could modify this example so that the RTSI line is also routed to the gate of your counter. If you perform a buffered position measurement with the gate being routed from the RTSI it will then sample the counter register at the same time the analog input is read.

I hope this helps out.

Joshua Prewitt
Application Engineering
National Instruments
0 Kudos
Message 2 of 2
(3,148 Views)