LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

repeating while loop with new values

Hello

 

I am having a series of procedures inside a while loop.After the first time the loop is executed, I get the output. Now I need a time gap of 10 seconds and do the same procedure inside the while loop with a small change. The change is that one input parameter to this while loop is increased. 

In short, when I run the VI it should first run the while loop, get the output, wait for 10 second, new input parameter is calculated and the same while loop goes on again  and the WHOLE procedure is continued as long as you stop the VI. Please see the attached vi. it is a similar example.

 

Thanks

Nghtcwrlr

---------------------------------------------------------------------------------------------
*************************************
---------------------------------------------------------------------------------------------
0 Kudos
Message 1 of 7
(3,479 Views)

Hi,

 

Hope this example will help you

 

Regards,

Harika

0 Kudos
Message 2 of 7
(3,467 Views)

Harika,

 

I fail to see how your example does anything like the question. There is absolutely nothing incrementing.

 

Nghtcrwlr,

 

All that you need is a shift register. This is basic programming. You should check out the tutorials

 

shift register.PNG

0 Kudos
Message 3 of 7
(3,462 Views)

First of all, your sequence is completely redundant.  There's other things wrong that I don't know how to type up.  I wrote a VI that does what I think you're looking for.  Hard to say though.  Give it a shot.

untitled.PNGYou'll have to replace the 1000 with 10000 for 10 seconds.

 

 

Message Edited by elset191 on 07-29-2009 09:53 AM
Message Edited by elset191 on 07-29-2009 09:54 AM
--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 4 of 7
(3,460 Views)

Hello Everyone....-

 

thanks for your tips. But unfortunately its not wrking with me. Actually what i have to do is with RS 232. I am heating up an oven up to a particular temperature. I give the starting temperature and the oven heats up to that temperature. I check this by retrieving temperature from the oven. When that particular temperature is reached, i switch off the oven for 10 seconds. Then again i start the loop of heating the oven to another temperature. This new temperature is increased by a factor of Delta T. ( New temperature = Start temperature+Delta T). Now the loop goes on same as in the previous case and switches off at the new temperature.

 

This is what i wanted. See the below VI or screenshot

Nghtcwrlr

---------------------------------------------------------------------------------------------
*************************************
---------------------------------------------------------------------------------------------
Download All
0 Kudos
Message 5 of 7
(3,438 Views)
Your shift register has no purpose, because you never change it's value inside the loop.
0 Kudos
Message 6 of 7
(3,432 Views)

Hello,

 

Indeed, you never update your shift register in your VI. I have adapted your program to reach your needs. Smiley Happy

 

 true case.GIF

 false case.GIF

I hope this helps,

Laurent P

0 Kudos
Message 7 of 7
(3,377 Views)