03-24-2017 09:57 PM
Hello, I'm not good at treating Labview so have many difficulties.
This Block diagram is what I made.
'Set.Temp' and 'Delay' array means that the temperature i want to set via Temperature Controller device and time gap between former set temp. and next set temp.
What i want to do is setting up cycle of temperature change.
For instance, (1st) 50Celcius -> 60 -> 70 / -> (2nd) 50 -> 60 -> 70 -> End(Stop)
For this process, I created constant from Counter terminal, N, in for loop and tested via device.
However, the cycle kept going and going until I press stop button.
How can I control the number of iteration?
It'll be very helpful to me if you offer some advice. Thank you.
PS) I attached my vi file, too.
03-24-2017 10:10 PM
First, I don't see a stop button in your VI. Perhaps you meant to say that you've been hitting the Abort button on the toolbar. You have a False constant wired to the stop terminal of your while loop. That means the while loop and thus your VI is going to run forever until you abort it. Mmmmm, interesting. The way you describe how your program is running is exactly how you programmed it.
I also don't see in your code where you created a "constant from counter terminal N".
So you only want it to go through 2 cycles of those steps. Well, why don't you turn that outer while loop into a For Loop and actually wire a constant of 2 to that N terminal.
03-25-2017 01:16 AM - edited 03-25-2017 01:17 AM