05-28-2009 11:24 PM
I made a routine for fast DAQmx (PXIe-6124) acquisition in two while loop (consumer and producer).
Currently it can be run by pushing run-button.
But, I would like to one more while loop (totally 3) for user-friendly interface and integrating sub-program using event structure.
Among troubles I thought, these three loops can affect the acquisition speed of DAQmx.
For example, if I send a "Acquire" signal to producer and consumer of DAQmx from event loop,
this mean I also have to send "Stop" command.
This requires more functions in every real-time acquisition iteration.
-conditional state loop and cluster bundle of 2D(500*500 DBL array) and variant of command enum or data to control consumer loop in producer of DAQmx.
-conditional state loop for next step and cluster unbundle of data in consumer loop.
My question is...
Are there some special or rule-of-thumb techniques for continuous, fast and large data DAQmx acquisition in producer and consumer using three while loops?
Instead of this, do I had better use call-by-reference under other main program?
labmaster.
*)I am sorry I can't post my code because of modifying and hidden subVIs.
05-29-2009 06:03 AM