01-19-2006 08:32 AM
01-19-2006 08:40 AM
I have an idea. Create a local variable for the start/stop switch and connect it to the inside stop terminal. Then click on the stop sign to change it to a Continue While True. You'll need to disconnect the switch from the outside loop, but just connect a stop button to this to stop the program.
Now, when the switch is true, the case structure will be true so the loop will start. Then once in the loop, it will continue until you switch off the start/stop switch. You'll need to have the switch off and press your new stop button to stop the program. This isn't how I would normally structure a program, but it looks like it's what you're trying to do.
01-19-2006 08:56 AM
So simply choosing "Value Change" from the event list is not good enough?
Chris
01-19-2006 09:00 AM
01-19-2006 09:03 AM
01-19-2006 09:04 AM
Marc I think u missed something, in my program structure, Like Ray are saying , i got the switch as an event by value change, so when i press the stop, the event handles the
action, and the event case stops as well. its not a problem, but i need the small case to stop to, so the big outer loop i sready again for a start action by the switch!!
zamzam
01-19-2006 09:11 AM
01-19-2006 09:31 AM
Sorry sorry , mi mistake , i think you got a later version, coz i havent saved it before i zipped the files
. When i run the program in signal motion, i can see that the signals (the 2 visa signals) at the end after pressing stop, goes out from the event case, then from inner loop, then from the case structure and at last to the outer loop and stops there. I thought that after that the outer loop will run again, but it dont!
If somehow i can send a signal from the event case when switched to stop, to stop the small case structure with the dataread, then meaby the outer loop will run again.
i'll try to remove it
01-19-2006 09:36 AM
01-19-2006 09:47 AM