05-19-2010 06:49 AM
Well guys, I just want to make a simple thing here but I'm having problem here:
I have 2 booleans and if one of them is "1" my case structure should work until I click on stop.
But i'm clicking on the boolean the program run one time and after it it just stop.
Could you help me? I will attach an image:
How can I make the part inside case structure runs until I click on stop?
Thanks for the help guys!
Solved! Go to Solution.
05-19-2010 06:54 AM
Do you have the Mechanical Action of the OK buttons set to Latch?
Lynn
05-19-2010 07:08 AM - edited 05-19-2010 07:11 AM
EduU wrote:Well guys, I just want to make a simple thing here but I'm having problem here:
I have 2 booleans and if one of them is "1" my case structure should work until I click on stop.
But i'm clicking on the boolean the program run one time and after it it just stop.
How can I make the part inside case structure runs until I click on stop?
Thanks for the help guys!
If I have understood this correctly, the logic you want is Exclusive OR, not OR
James
Edit: You also have a race condition in your VI, Replace the Local with "Reinitialise to default" Invoke node and wire the error out on to the while loop to set Stop to false before you start running.
05-19-2010 07:10 AM
05-19-2010 07:19 AM
Hi,
u may delete the stop button then right click on the terminal (the square with red point) select create control.
W
05-19-2010 07:24 AM
The button is "switch until released" and I didn't understand the others comments.
I know I have a race condition but this is only an example... my major problem is to know why even with clicking in the button OK the program don't stay running x(
I tryed with latch but wont work, only if I clicked on it for ever....
Thanks but it wont work yet!
05-19-2010 07:40 AM - edited 05-19-2010 07:43 AM
Does this VI help understand my comments?
Does this do what you wanted it to?
James
Edit: add pic
05-19-2010 07:40 AM - edited 05-19-2010 07:44 AM
05-19-2010 07:56 AM
James, Now I understood thanks 😉
lmtis, you are correct my friend! I did it and works very fine....Now I have to implement it to my program
thanks mate 😉
05-19-2010 08:13 AM
Ok thanks guys, I have fixed that!
I was invert something wrong... so my program was ending every time haha
thanks for the help!