02-20-2006 03:52 PM
02-20-2006 04:10 PM
02-21-2006 12:36 PM
Anthony,
If you want to use this example program as a subVI, the while loop will keep
your main VI from executing. To
solve this, you could simply place the subVI in a while loop that is in
parallel with the rest of your code. This will allow the subVI and mainVI
to continue executing. Alternatively, you could write the DAQ voltage
generation code into your application or use the DAQ Assistant.
Jesse O.
Application Engineering
National Instruments
02-22-2006 03:12 PM
02-23-2006 03:32 PM
Anthony,
The reason why your two loops aren’t executing at the same time is that you have created a data dependency between the two loops with the stop being wired from one loop to the other. This means that the second loop (the one with your example call) will not begin till it receives the stop command from the first loop. To avoid this dependency by yet still have one stop button command control both loops, use a local variable (of you stop control) to control the stop of the second loop. This way you will remove the data dependency will having one stop button control both cases. There is an example shipped with LabVIEW that shows how to do this. You can find it in the Example Finder (Help Menu >> Find Examples) in the following folder structure:Fundamentals >> Local and Global Variables >> “Stopping Parallel While Loops without Reset.vi”Hope that clears things up for you, let us know if you have any other questions.
-GDE
03-21-2006 06:53 PM
03-22-2006 06:39 PM
Anthony,
Sounds like you trying to set the Waveform Graph displays that are on the front
panel as your output terminals. That is not going to work for what you really
want. All that you are going to get by doing that, is the last set of data that
was retrieved in the last iteration of the while loop. Rather then all of the
data from each iteration which is what I assume you want. There are a couple of
things you can do to transfer this information to your main VI. There are two
routes that I see initially that you can go.
-GDE