Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Loop in event structure

Hi Devchander :
 
Last time, you said the best method is to use the subvi. I read the path below.
 
 
It said the while loop will stop when the conditional terminal (the square in the lower right) recieves the correct  Boolean value. The correct Boolean value can be from any condition you want - a stop button, an error, a measurement comparison, etc. It will loop until something is either true or false. You can just click on the contitional terminal to change it from stopping on a true or false (or right click on it and select).
 
So, I think if it is possible to add something after the mean vi, it compare weather the value is less than 70mA. The while loop will stop.
Accroding to the reading above, it seems it can. am I right?
 
The for loop function is looping until the number is reached. So, I think it will not work to put something inside the for loop to see wheather it reached the value under 70mA and that value is stabe for a minimum of 2 second. Am I correct.
0 Kudos
Message 1 of 3
(2,930 Views)

Hi John,

So, I think if it is possible to add something after the mean vi, it compare weather the value is less than 70mA. The while loop will stop.
Accroding to the reading above, it seems it can. am I right?
So, I think it will not work to put something inside the for loop to see wheather it reached the value under 70mA and that value is stabe for a minimum of 2 second. Am I correct
 
You are absolutely right!
Go ahead and implement it to stop your sub VI's while loop.
 
 
 
0 Kudos
Message 2 of 3
(2,926 Views)
Plus use  this forum to discuss issues pertaining to Multifunction DAQ.
 
For queries relating to loops and labview programming techniques, plz use Labview discussion forums
 
all the best
 
0 Kudos
Message 3 of 3
(2,925 Views)