10-13-2006 02:20 PM
10-13-2006 02:31 PM
10-13-2006 02:38 PM
10-13-2006 03:13 PM
10-13-2006 03:17 PM
10-13-2006 03:38 PM
altenbach-
Thanks for clarifying that. If I understand you correctly, there is no way to change the value of a variable in the while loop once it starts. Which is what I was trying to do- set variable to false, run while false, set variable to true when data written successfully, use this to stop the loop. Are you saying the value of variables in a while loop do not update when the loop moves to a new iteration?
I could by way off here. I've got to be honest your first post confused me. Were you giving instructions, or pointing out why I wasn't able to get out of the loop?
I've attached the newest version below, but it suffers the same problem.
Any ideas on how to grab a snapshot of the serial port when I get an external trigger? I basically want to know the gps time,lat,lon, etc at the trigger.
Thanks
10-13-2006 03:54 PM
10-13-2006 04:07 PM - edited 10-13-2006 04:07 PM
@psice wrote:
If I understand you correctly, there is no way to change the value of a variable in the while loop once it starts.
Of course there is! If you want a control to be read during loop execution, place its terminal inside the loop.
In your particular case, the loop continues as long as an error occurs. If it never succeeds, it'll never stop. Just place a stop button terminal inside the loop and do some boolean logic so it also stops if the button is pressed.
Ponder the following figure 🙂

Message Edited by altenbach on 10-13-2006 02:08 PM
10-13-2006 05:28 PM