LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I make a routine stop and start again without restarting labview?

Solved!
Go to solution
I am running Labview 6i and am somewhat of a noob.  I have a subVI designed to take information and write it in a file, but every time I stop this subVI it will not start again until I restart the entire VI.  I would like to be able to start it and stop it and take multiple readings because I must leave the main VI running.  The subVI is attached.
0 Kudos
Message 1 of 8
(3,025 Views)

Hi Jiggles,

you can restart it in your main vi you can add another loop to your sub vi or you can insert a case structure with stores all x iterations your data to the file without stopping the loop.

 

Mike

0 Kudos
Message 2 of 8
(3,021 Views)
I tried a couple of case combinations, and this one seems the most solid.  Still, the while loop is not passing information.
0 Kudos
Message 3 of 8
(3,013 Views)
Solution
Accepted by topic author Jiggles

The while loop isn't passing information because it's still looping (you wired the continue terminal to a True constant).  Loops don't pass out any data until they're finished.

 

If you attach your main VI as well then we can help you correct both of them to make them work together.

 

Jeremy

0 Kudos
Message 4 of 8
(3,002 Views)

Jeremy,

 

Wow, that was boneheaded of me.  Unfortunately, the main VI is at work and I cannot get to it right now.  The random number generator simulates the data coming into the subVI.  The except for the data input, the subVI is autonomous.

0 Kudos
Message 5 of 8
(2,994 Views)

Not a problem.  What exactly is that data that you are passing to the subVI.  Is it an array of doubles?  What exactly (in words) do you want the subVI to do?

 

Jeremy

0 Kudos
Message 6 of 8
(2,992 Views)
Thanks to prodding from you, I believe I figured it out.  Please have a look.
0 Kudos
Message 7 of 8
(2,988 Views)

Great!

Have a nice day.

 

Jeremy

0 Kudos
Message 8 of 8
(2,984 Views)