ni.com is currently experiencing unexpected issues.
Some services may be unavailable at this time.
10-25-2007 10:40 AM
10-25-2007 11:02 AM - edited 10-25-2007 11:02 AM
First of all, all your tight polling loops need small waits, else the VI uses 100% of the CPU doing absolutely nothing except checking the button millions of times per second. If you put a 10ms wait in these, the CPU use will drop to 0.01% without any change in behavior.
There is no logic in you boolean logic. That "OR FALSE" can be deleted without a change in functionality.
You should not have two different buttons labeled "start". That's confusing!
Your pause loop is set to "stop if true", meaning once you press pause, the loop only iterates once. Maybe you want to set the loop condition to "continue if true".
... I'll look at the rest later. I agree that the program should be rewritten from scratch. Too many odd constructs and duplicate code sections. 🙂
Message Edited by altenbach on 10-25-2007 09:03 AM
10-27-2007 12:49 PM
10-27-2007 01:12 PM
Also note that your pause construct is way too complicated. You don't need the case structure. A single loop containing a small wait and the pause terminal (wired to the loop condition) is all you need.
@TaKiMi wrote:
Thanks 4 ur reply.Yeah...you're right, seems like the pause button will function after we set the loop condition to "continue if true".
You cannoy "convert" an array to a scalar, because an array typically has much more information that a scalar can hold. You could just use an "index array" to e.g. get the first element. You could also take for example the mean of the array or the maximum value. It really depends what is most important to the operator.
@TaKiMi wrote:
How about the outputs of the array.I mean the output [DBL] indicator for V, I n P. how can I convert this values to scalar input.because I want put some numeric such as gauge, meter and etc. n I hope u will give me the solutions for the rest.thank u very much.
10-27-2007 02:55 PM
10-27-2007 04:06 PM
10-27-2007 04:14 PM
10-27-2007 04:51 PM
Ravens Fan a écrit:Another tip is to get rid of the mustard yellow background. It burns my eyes!
10-27-2007 05:12 PM
10-27-2007 05:20 PM
I would just use the default grey that you can copy from the background of a new VI.
@TaKiMi wrote:
Hi Ravens Fan....
I agree with u.I don't like this yellow for my background.If you don't mind, could you suggest me which one color should I pick