Hello,
I have tried adopting a multi-loop data acquisition program with queue control, however it doesn't work the way it should. (Or at least the way I think it should) Could you please help me ironing it out? I've seen some vis on the internet with queue-control and tried adopting them.
My program should work in this way: after doing the settings, I start the data acquisition (one analog output and 2-4 analog inputs), however I only want to save the acquired data when I click a record button. (Then this saved data would go on for further analysis). While doing the further analysis, the acquisition can be paused. However, when I click record I'd like to have a functionality to instantly restart recording and discard the data previously recorded.
MainProgram vi is the app itself, with some settings done by event handlers (now limited only to a signal file selection and channel settings). Then the data acquisition can be started by clicking the Start Acq button.
And here come my problems: first sometimes the queue starts, sometimes it doesn't (or at least it doesn't start the data acquisition). And the main point: I set the sample rate, yet it is acquired at a much-much slower rate (my signal has a period time of 4 seconds, yet it needs at least 20 seconds to get near finishing). And the strangest: sometimes, mostly after some time (about 1-2 min) it hangs and does nothing with the daq (yet labview seems responsive, just my program hangs somewhere).
So now only the controlled acquisition is in the problem and first I don't care about forwarding the data for analysis and saving. (That seems to be the smaller problem).
What am I doing wrong? Thanks for your help.
I attach all the files. (MainProgram is the app itself, MY.SIGNAL is the signal file I want to output.) I use a USB-6211 device. (at work a physical one, at home a simulated one).