12-18-2006 09:38 AM
Dear People,
How I can synchronize the counter and analog inputs of DAQCard-6024E?
I have played with the NI examples of synchronizing two devices without a success.
The counters of 6024E seem to need an external sample clock? What is this?
My target is to monitor continuously the analog inputs and values of one counter. The preferred solution should be able to read multiple samples at the desired sampling frequency (SampleQuantityMode.ContinuousSamples or SampleQuantityMode.FiniteSamples).
What do you think?
Is it easier with some M-series board?
BR,
Ilkka
12-18-2006 12:10 PM
You shouldn't need a different board. Here's a simple way to synchronize using DAQmx in LabVIEW:
When configuring your counter task, wire into the "sample clock source" input in DAQmx Timing.vi There you can specify something similar to "Dev1/AISampleClock", causing both buffered tasks to be driven by the same hardware clock. From the point of view of the counter task, the AI Sample Clock IS the needed external sample clock.
-Kevin P.
12-19-2006 11:02 AM
Hello Kevin
Yesh, now it is working, thanx. I had a lot of problems before I noticed that the sampling rate was too high for the counter. After I dropped the sampling frequency to 900 Hz my application started to work.
People have similar problems in the following thread:
http://forums.ni.com/ni/board/message?board.id=250&message.id=12326&requireLogin=False
What do you think about the DAQCard-6024E card? I have a similar application as the example above (some AIs and an encoder for position data), but I would like to run much faster than the current 900 Hz.
I can change from continuous sampling mode to finite samples... 10 kHz sampling rate for acquiring 5000 samples would be good.
Best regards,
Ilkka
12-19-2006 12:01 PM