05-12-2012 04:44 PM
05-12-2012 07:24 PM
You are running your code as fast as possible.
You should use an event structure that only changes the graph or the annotations in the event on of the boolean buttons change their value.
05-12-2012 07:39 PM
In addition to Ravens Fan's comments, if the Name values are never going to change, write those properties one time before the while loop starts. Then pass the AnntList from iteration to iteration via a shift register.
Why is the Stop button hidden? Show it and use it to stop the loop. Do not use the Abort button to stop the VI.
Lynn
05-13-2012 01:32 AM
Thx U guys
This is just a snippet of a 100 times bigger code im working on
I just put this togeher to solve this problem ,its not optimal
05-21-2012 02:39 AM
torkil wrote:This is just a snippet of a 100 times bigger code im working on
I just put this togeher to solve this problem ,its not optimal
Considering that you have way too much duplicate code in your little snippet, I guess that your 100x bigger program could also be made with 20% of the code.
Here's how eliminating all that duplicate and overly complex code could be simplified without change in functionality. 🙂
Many more improvements are possible.