04-15-2014 08:41 AM - edited 04-15-2014 08:42 AM
hey guy , im doing a project on labview that i want to just make prettier for the lecturer by adding extra features
is there a way to feed the boolean logic from an led going high( turning on my ' alarm ' ) to ending the program
at the moment i have a funtion block with c code in it and an alarm latch to keep the light on all inside a for loop
does anybody know a way to tap a wire off the red circle on the image file attached that will end the program
all help welcome
thanks
kevin
04-15-2014 08:56 AM
@kevinbarry92 wrote:
does anybody know a way to tap a wire off the red circle on the image file attached that will end the program
Yes, you just wire off of it. But that wire ir a boolean array right now. Do you want your loop to stop if all the elements are true, or if any of the elements are true? You would use either AND Array Elements, or OR Array Elements.
04-17-2014 10:51 AM - edited 04-17-2014 11:00 AM
all is what triggers the alarm, so all elements are true.
basically the latch keep a light on if the conditions are met , so what i want is that the program will stop when the light comes on, i can take the boolean data out of the array with an array index block but that doesnt make a difference really , no major change and doesnt end program
04-17-2014 11:11 AM
Where is your stop button for the master while loop? You need your boolean to go to that.
I don't see it on the screen, and that green background is making things very difficult to see as well.
The boolean logic there is rather confusing since you have a feedback node of an array, and also a shift register on a one iteration while loop for a single boolean.