06-25-2010 01:57 PM
@bobholmgren wrote:
What I mean is I want the program to do literally nothing (except get data and graph it every 3 seconds using while loop and time delay) unless an input changes. Then I want it to run through once.
If you spin the loop anyway, don't worry about executing this part of the code with every iteration. it is insignificant in the grand scheme of things.
06-25-2010 02:05 PM
I'm unsure how to have my program run essentially continuously with the inputs as "interrupts" to break it out of the loop and run the rest of the code, then re-enter the loop again.
I'm not used to labview (Only been using it a couple days)
06-25-2010 03:40 PM
You don't need to break out of the loop. Place all the controls in the main loop and they will get polled once per iteration.
06-25-2010 04:29 PM
Ok, I just did a while loop with everything in it, and a .2 second delay (data will only need to be recorded once every 30 seconds or so).
Now it loops and rechecks everything once each time that the time delay is over.
Thank you
06-25-2010 04:36 PM
Give Altenbach a Kudo and mark his solution as the accepted solution.
06-25-2010 04:37 PM - edited 06-25-2010 04:38 PM
@tbob wrote:
Give Altenbach a Kudo and mark his solution as the accepted solution.
Which solution should I mark? haha.
My question evolved and changed so many times.
06-25-2010 04:45 PM
@bobholmgren wrote:
Which solution should I mark? haha.
My question evolved and changed so many times.
Mark the one that solved your original question.
06-27-2010 06:42 PM - edited 06-27-2010 06:42 PM
@altenbach wrote:
Now, to solve your programming issue, you would:
My excuse is that I misinterpreted the full extent of the question.