11-22-2005 06:09 AM
11-22-2005 06:18 AM
Put a wait(mS) in the two loops out to the left. This should improve your CPU utilization. Frankly I do not see how this application stops, unless you hit the LabVIEW stop key. Also, depending on the speed of execustion of the primary while loop inside your main loop, you may want to put a wait statement in.
These should help. Actually there is a whole lot that can be improved but try putting those two wait statements in and see what happens.
11-22-2005 07:51 AM
I made a small change to your VI. Utilizing an event structure. This should improve your CPU usage issue. Not sure if it will be the cure but it should help. Additionally, when you hit the exit key, the VI will stop now, however your values will NOT be written to the ini files after that event. The language issue is hindering my ability to help as I am not sure what everything does, but heck...every little bit helps.
See attached.
11-22-2005 11:47 AM - edited 11-22-2005 11:47 AM
No, you don't need them!
@nasps wrote:
My question: I know that I use a lot of local variables because a need them and two or three loops, how can I optimize my application without changing the PC.

Personally, I probably would make one nice cluster corresponding to one of your seven channels, then place it inside an array of size seven. It would really simplify things. Use a shift register to keep the current state.
Message Edited by altenbach on 11-22-2005 09:47 AM
11-23-2005 04:43 AM
11-23-2005 06:55 AM
Very nice Altenbach.
You deserve multiple stars on that one.
Very nice & clean vi. 🙂 ... and right on the $$..