DirkW
2008-02-26 16:10:09 UTC
Hi,
Your example works fine. keep in mind that your CAN frame transmits every 20 ms. That means if the start trigger occurs and we missed the CAN frame the maximum time elapses until we receive the next frame and create the timestamp is 20 ms. So as long as you are below 20 ms everything should be fine.
If you want the time when the start trigger occured you could log the trigger as frame to your queue. This frame should allways have the earliest timestamp compared to DAQ. See the attached modified VI.
DirkW
T12_Multiple CAN Cards Frame API Single DAQmx Card_modified.llb:
http://forums.ni.com/attachments/ni/30/3234/1/T12_Multiple CAN Cards Frame API Single DAQmx Card_modified.llb
Your example works fine. keep in mind that your CAN frame transmits every 20 ms. That means if the start trigger occurs and we missed the CAN frame the maximum time elapses until we receive the next frame and create the timestamp is 20 ms. So as long as you are below 20 ms everything should be fine.
If you want the time when the start trigger occured you could log the trigger as frame to your queue. This frame should allways have the earliest timestamp compared to DAQ. See the attached modified VI.
DirkW
T12_Multiple CAN Cards Frame API Single DAQmx Card_modified.llb:
http://forums.ni.com/attachments/ni/30/3234/1/T12_Multiple CAN Cards Frame API Single DAQmx Card_modified.llb