02-02-2015 05:15 PM
Hi,
I am having issues with certain parts of my VI that I can't seem to figure out. The most important ones are that the elapsed time VI and Stop button are not working correctly on the front panel. Currently, the elapsed time doesn't move from 0 even though I want it to be counting the entire time the program is running and stop when the time target is reached. This is not happening. Also, the Stop button within the while loop does not stop the VI from running. Why is this?
Any help is appreciated!
Solved! Go to Solution.
02-02-2015 05:27 PM
There is a missing SubVI that we do not have so I was not able to actually run your program (Scale SubVI), but my first guess is that there is an infinite while loop in that subVI. It sounds like your loop never finishes executing its first iteration. You can check if this is the case by adding an indicator to the iteration terminal.
02-02-2015 05:33 PM
I have attached the SubVI. It does not contain a while loop though.
Any other thoughts?
02-02-2015 05:38 PM
Well, if you are not getting any data on the serial port, you currently have a 10 second timeout. So I'm thinking your buttons are actually working, you just aren't waiting long enough to see them act.
02-02-2015 05:46 PM
Maybe you want to keep the discussion of the same VI in one place instead of constantly starting new threads. (You still have that strange combination of "built array" followed by an concatenating tunnel).
Please attach the subVI.
02-02-2015 05:47 PM
I would go with what crossrulz said or you are never getting the samples you need form your DAQ task.
I just changed the DAQ Assisstant to simulate signal and I can run your program (well the main while loop, I put a breakpoint after start). Again though I would just add an indicator to your iteration terminal to see if the loop completes. If crossrulz is right you should see that update once every ten seconds.