The attached VI below runs every time a user pushes a button on the front panel. It should run for 5 seconds before coming to a stop. This is only a sub-vi so it won't run if someone here opens it but I'm hoping the solution to my problem will be easy to see for someone with more experience than me.
The vi works perfectly the first time but once the button is pushed a second or third time to run the vi again etc. it doesn't function correctly. I think it's a timing issue where I may not have configured the elapsed time express vi correctly..
I think it might be one of these problems (or it could be something else)...
(1) The exit condition of the While loop stays true after the first successful run of the vi meaning the loop wil terminate straight away on subsequent pushes of the button to run the vi again.
(2) The elapsed time express vi needs to be reset to 0 after each complete execution of the vi.
If someone could have a look it would be great or if more info is needed, just shout.
Strokes