09-06-2007 09:09 AM
09-06-2007 10:06 AM
here is an image of the code in question:
09-06-2007 10:20 AM
09-06-2007 10:36 AM
09-06-2007 10:44 AM
09-06-2007 10:58 AM - edited 09-06-2007 10:58 AM
to uplpoad an image, simply attach it to the post, (at the bottom of the text edit area, there is a button to browse attachments).
but just from your description, something bothers me:
an event structure within a while loop - up to now no problem.
then the whole thing within a sequence structure - what will happen normally, is as your sequence is performed during runtime, you will reach the while loop. this one waits to either an event to occur, either timout. if the while loop is wired to a stop button, this button should be handled by a special "stop"event in the structure, with the button connected from this event to the loop stopper.
Then (and only then), the rest of the sequence can perform.

notes:
1) you might want a "latch when released" mechanism for the loop
2) you can put the stop button in the timout event if prefered. define some time for the timout (i.e. 50ms)
Message Edited by Gabi1 on 09-06-2007 05:59 PM
09-06-2007 11:07 AM
09-06-2007 11:20 AM
your event structure while loop has a "stop if true" condition, yet it is connected to a constant with value "false" when event 1 (single pulse) is called.
what are the other events? is there an event where this becomes true? check the conditions!
note: the default value for a boolean connection out of the structure is false. therefore, there is no need to connect every instance of it, only the ones that are transmitting a "true" value out.
09-06-2007 11:30 AM
09-06-2007 11:34 AM