11-15-2006 08:59 AM
Considering the fact that you've managed to implement a producer / consumer pattern using a queue, might I humbly suggest that you also abandon the use of the DAQ Assistant? My personal and heavily biased opinion is that the DAQ Assistant is of very limited use, aimed primarily at those who are (or should be!) reluctant to do their own programming. If you're comfortable slinging data around through queues, you should easily be up to the task of explicit DAQ programming.
The examples you find from the LV Help menu are often a very good starting point to illustrate the proper sequence of DAQ calls. Probably the single most important lesson for your large-ish acquisition is to configure and start the DAQ task *before* entering your main loop, perfom Read's inside the loop, then Stop and Clear the task after the loop completes. It may be the case that there are ways to accomplish similar things with the DAQ Assistant, but I myself don't know them and would suggest that in the long run, you're much better off learning how to control the tasks more explicitly anyway.
The choice of input and output in same or different loops depends on what you need to accomplish. Not much help, huh? Can you describe your app more? Can you post code? One thought, just in case I'm guessing right: are you writing data to your output generation task every loop iteration? If your output is meant to generate some kind of repeating pattern, it wouldn't be necessary to keep writing to it over and over. An output task can be setup so that you write data to its buffer 1 time ever and the board will keep regenerating that data in a circular fashion. I guess I still can't twist my head around enough to see how that should have any effect on the timestamps of the input task though.
If you can post code, could you post a screenshot of it too? For some of us, network PC's and LabVIEW PC's can't be accessed at the same time...
-Kevin P.
11-15-2006 11:08 AM - edited 11-15-2006 11:08 AM
Message Edited by Erik J on 11-15-2006 11:09 AM
Message Edited by Erik J on 11-15-2006 11:14 AM
11-15-2006 11:22 AM
12-21-2006 11:47 PM
12-22-2006 01:11 AM
12-22-2006 05:01 PM
12-28-2006 10:17 PM
12-29-2006 01:32 PM
07-22-2009 10:30 PM
I know this thread is old but I would like to look at your code. Whenever I try to look at any of the code, I can't find the "Waveform Buffer Generation.vi". I am using LabVIEW 8.6, was this something residual to 8.0?
Would love to look at the whole code, thanks.
07-23-2009 12:08 PM