05-31-2011 09:22 AM
hi,
i am at the beginners level of using level, and i am trying to get the lab view program to run the attached image one after the other, please advice me on how to get this done
Solved! Go to Solution.
05-31-2011 09:27 AM
What does "50" mean in your subject line? Please provide a more meaningful description.
Next, i'd recommend you take some LabVIEW tutorials.
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours
I don't know exactly what you want to do with your code, but I'm sure it's not going to work. Your first loop will run exactly one time because you have a true wired to the stop terminal. Your third loop will never run. Why? Because your 2nd loop will run forever since you have a False constant wired to the stop terminal. The only way you can stop your VI is to hit the Abort button on the toolbar.
05-31-2011 09:46 AM
thans for your reply, what i want is the loop to run one after the other, starting with the firt loop to the second and finally to the last loop
05-31-2011 09:50 AM
The flat sequence structure is allowing you do do that now. And you can actually merge the first and second frames because the loop in the second frame can't run until the first loop is done because of the data dependency created by the wire.
You just need to solve the problems you have with the way you are stopping the loops.
Do you want the first loop to run only one time? You can just go ahead and delete the loop.
Do you actually want the second loop to run forever? I doubt it. Under what conditions to you want the second loop to stop and advance to the third loop.
Likewise for the third loop. It would run forever if your VI was ever able to get to executing that loop. How do you want that loop to stop and thus end the program?
05-31-2011 09:55 AM
thanks for your reply again, what i want is for the first loop to run once and stop and the second loop will start and run once and stop and the third loop runs once and stop
05-31-2011 10:16 AM
If the code in the first and second loop only needs to run once, you can simply delete these loops. Right?
06-01-2011 10:30 AM
thanks for you support, i have tried deleting the loop so that it runs once for each of the vi but never worked, can u show me how i can do this
06-01-2011 10:31 AM
Post your code and we will show you how to clean it up.
06-01-2011 10:42 AM
thanks for your reply, i want the lop to run one after the other, starting from the firt loop to the last loop and the program will sop after the last loop.
find attached my code
06-01-2011 10:51 AM - edited 06-01-2011 11:00 AM
You did not post your code, you only posted an image. That's not very helpful.