LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

50

Solved!
Go to solution

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

good
0 Kudos
Message 1 of 42
(3,598 Views)

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.

0 Kudos
Message 2 of 42
(3,591 Views)

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

good
0 Kudos
Message 3 of 42
(3,572 Views)

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?

0 Kudos
Message 4 of 42
(3,562 Views)

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

 

good
0 Kudos
Message 5 of 42
(3,551 Views)

If the code in the first and second loop only needs to run once, you can simply delete these loops. Right?

0 Kudos
Message 6 of 42
(3,537 Views)

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

good
0 Kudos
Message 7 of 42
(3,492 Views)

Post your code and we will show you how to clean it up.

Tim
GHSP
0 Kudos
Message 8 of 42
(3,489 Views)

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

good
0 Kudos
Message 9 of 42
(3,484 Views)

You did not post your code, you only posted an image. That's not very helpful.

 

  • We cannot tell the difference etween the express VI configurations, for example.
  • The tree loops look very similar. What's the difference?
  • Why is there a sequence frame around it, just so it looks like a pretty picture? It certainly has no function.
  • What's up with that lone express VI at the bottom?
  • Currently, the three loops as well as the express VI at the bottom start all in parallel at run at the same time. Is that waht you really want?
0 Kudos
Message 10 of 42
(3,474 Views)