it on a screen, stores it in a file. Furthermore, there is the facility for the user to view an old file: he clicks abutton and then the file-open dialogue box appears, however, when this happens, the aquasition stops until you the dialogue box is closed.Open a new VI.
Put two WHILE loops on the diagram, side by side (not nested).
In each WHILE loop, pop up on the [i] terminal and create an indicator for it.
In each WHILE loop, put a WAIT(mSec) function with a constant wire to it.
Set the constant in one loop to 200, set the other constant to 300.
Wire the CONTINUE IF TRUE terminal of both loops to a constant TRUE.
Run it and watch the two indicators - they're running at different rates.
That is the basic multi-threading idea. You want one loop to handle user-interface stuff (file dialog, QUIT button, etc.) You want another loop to handle DAQ. You can process the data in the same DAQ loop, or a third loop, depending on your needs.
If you put the loops in separate subVIs, you can arran
ge their priority, execution systems, etc.
Make sure your user-interface loop either A) uses an EVENT structure for detecting button clicks, etc. or B) you put a WAIT function in your user-interface polling loop.
There's NO point in polling front-panel buttons 10 million times a second (I've seen it happen).