Bong,
There is one thing I "don't really like" in your code, it is that there in no dependence between the while loop above and the part below that reads/writes the xml file. So you can't be sure that the "read status from xml file" will be done before the above while loop execute the first time...
That's why I suggest you have a look at the vi I sent you in my previous post. As a matter of fact I think it is a good framework to have what I call "dependence links" between initialization, process and close.

This way you don't need to have 2 while loops and also to set your "stop" button's mechanical action to Switch
😉By default, a stop button is Latch and I think it souldn't be changed, but this is just my opinion.
Message Edité par TiTou le 03-15-200611:12 AM
Message Edité par TiTou le 03-15-200611:14 AM
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
Antoine Chalons