06-06-2005 05:41 PM
06-07-2005 09:32 AM
06-07-2005 09:52 AM
06-07-2005 09:59 AM
06-07-2005 11:36 AM
06-08-2005 02:11 AM
06-09-2005 10:31 AM
@demux wrote:
Hey Tao,
There is a good and a bad side on DAQmx. The good side is that it is very easy to program, the bad side is that it does a lot of the thinking for you (in most cases a good thing ;-)). You are right about the efficiency part, but DAQmx is far more efficient then Traditional DAQ for starters.
To go more specific, I programmed a Buffered finite acquisition and let it run every second, started by the loop iteration. If you want you can set the Timing.vi and Start Task.vi outside the loop because these values stay constant. (You want it to start immediately with the same Timing values)
The Stop Task.vi however needs to be inside the loop. The reason for this is to bring your task from the Running state back into the Commited state on your DAQmx Task state model. Easier said...you cannot start again if you haven't yet stopped.
Don't forget in this case you start and stop a measurement each second, you are not measuring constantly at 10000Hz. and only visualising 1000samples.
Hope this clarifies a bit!
Regards,
Wouter
National Instruments
06-10-2005 01:58 AM