Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to sync two 9237 units?

Solved!
Go to solution

Hello,

I am writing an application in C# .NET using the DAQMX library, and I have 8 strain gauges I need to measure using two NI 9237 units connected by USB to my computer.

The problem I am experiencing is that the timestamps of the samples read by the two units seem to differ slightly from each other.

I could not measure both units in one task, so I created two tasks.

 

As a test I start both tasks and measure data for a few seconds. During this session I plant a solid kick in the mechanical structure that the strain gauges are mounted to.

When I look at the data recorded, I see that this kick is measured at different timestamps for the two tasks although the should be approximately the same.

 

I have not done anything to ensure they were synchronized, I just assumed they were - at least approximately, but I got deviations in over 160ms apart at 2kHz sample rate.

The NI 9237 uses an internal clock, I have read, so the question is:

 

 

Is it possible to synchronize the two units without any extra hardware, and how?

 

 

I have searched the forums and google, but most related info were that 9237 did not synchronize well with other units that uses external clocks as timebase because 9237 uses an internal clock.

0 Kudos
Message 1 of 4
(3,662 Views)

Just came off the phone with a NI employee, and was told there is no way of synchronizing the two units except using a cDAQ-9172 chassis for 8 units.

There are two reasons this is a no-go for me, namely size and price.

 

Are there any other clever ways of synchronizing the two units? Creating some sort of 2-unit chassis myself, and routing the timebase clock of one device to the other as is done when they are mounted in a chassis?

0 Kudos
Message 2 of 4
(3,658 Views)
Solution
Accepted by topic author andreas.initialforce
The NI employee you spoke to on the phone is correct.  The only way right now to synchronize two NI 9237s in DAQmx is in one or more Compact DAQ chassis (cDAQ-9172).  The USB-9162 carrier and the NI 9237 have no terminals to import a timebase, sample clock, or trigger.  There is no way to make a two slot chassis with two USB-9237s.
Message 3 of 4
(3,650 Views)

Thank you for a quick reply!

At least I have now confirmed my suspicions, and will need to contact NI for a resolution on the problem.

0 Kudos
Message 4 of 4
(3,636 Views)