07-29-2009 09:30 AM
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
07-29-2009 09:44 AM
Hi,
Hope this example will help you
Regards,
Harika
07-29-2009 09:51 AM
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
07-29-2009 09:51 AM - edited 07-29-2009 09:54 AM
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.
You'll have to replace the 1000 with 10000 for 10 seconds.
07-29-2009 10:56 AM
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
07-29-2009 10:59 AM
07-31-2009 03:27 AM
Hello,
Indeed, you never update your shift register in your VI. I have adapted your program to reach your needs.
I hope this helps,
Laurent P