LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to run a loop for 1hour

Solved!
Go to solution

Hello All,

             I am very new to labview and its components. I want to program a loop which would run for one hour.

Actually, I would like to make it more user friendly, by asking the operator to enter how long he would like to run the code.

 

Can anyone please suggest me how to do this?

 

Please excuse me if I entered into wrong forum ...

 

Now on LabVIEW 10.0 on Win7
0 Kudos
Message 1 of 9
(2,976 Views)
Solution
Accepted by topic author LV_Enthu

Something like this

 

22338i1AE910371C1340D8

Tim
GHSP
Message 2 of 9
(2,966 Views)

Use a while loop.  Use the Elapsed Time function to determine when to stop the loop.  You can create a control to have the user enter the amount of time, then wire this into the Elapsed TIme function.

 

22340i7248ADD79B260A0A

- tbob

Inventor of the WORM Global
Message 3 of 9
(2,965 Views)

Answering a question in G is also faster then writing it. Just like coding. Smiley Very Happy

Tim
GHSP
0 Kudos
Message 4 of 9
(2,958 Views)

Many ways to skin that cat!  But here is a pretty simple example -

22342iDDD58F6F20898EF5

 

Darn snippet tool>

22344iFD05BBAAC3966C47

 

 


"Should be" isn't "Is" -Jay
Message 5 of 9
(2,948 Views)

@Jeff Bohrer wrote:

 

Darn snippet tool>

 

 


 

Just start thinking

Code Capture Tool!

Code Capture Tool!

Message 6 of 9
(2,940 Views)

thanks a  lot guys.... this is like awesome help from you all...

 

kudos to all... thanks a lot 🙂

Now on LabVIEW 10.0 on Win7
0 Kudos
Message 7 of 9
(2,939 Views)

@CrackJack wrote:

thanks a  lot guys.... this is like awesome help from you all...

 

kudos to all... thanks a lot 🙂


to give kudos, click on the kudos box by each post you want to give a kudo to.

- tbob

Inventor of the WORM Global
0 Kudos
Message 8 of 9
(2,933 Views)

You should also look at the solution that best solved your answer and mark that one so everyone knows that you question has been answered. This allows the volenteers to move on to questions that have not been answered yet. Smiley Happy

Tim
GHSP
0 Kudos
Message 9 of 9
(2,923 Views)