11-26-2008 12:04 AM
Hi all,
I am doing a program to display N number of parameters on a single graph.
I manage to get it done on my test vi, but when i code the same coding to my real vi, the arrangement of the legend is not as per expected.
It has always jump to the second parameter instead of the first.
however, when i tick only one parameter, it will display on the legend.
On my test vi and also my real vi, the coding looks like the file below (1.jpg) - exactly the same.
2.jpg --> shows my test vi front panel.
3.jpg --> shows my real vi which the legend is not per expected.
I am really confuse of the different outcome even though it's coming from the same code.
Please advise.
your help is much much much appreciated.
Thanks.
regards,
Roziela Sharib
Solved! Go to Solution.
11-26-2008 12:31 AM
11-26-2008 01:05 AM - edited 11-26-2008 01:06 AM
On a side note, your example code is extremely convoluted. Why do you need two loops, a shift register, an intermediary array, index array operation, etc.
All you need is one loop and autoindexing on the names array and boolean array. Here's a quick draft.

11-26-2008 01:07 AM
Hi altenbach,
Thanks for your reply.
Currently i am using the Labview version 8.2.
Attached is the vis - I have attached both the test(UPDATE LEGEND.vi) and the real (real.vi). real.vi is the one that fails.
It doesnt display in sequence and 2nd parameter always come first.
Please advise.
Thank you.
regards,
Roziela Sharib
11-26-2008 01:27 AM
The vertical order matters for property nodes. On the right, you need to reverse the order of the two properties:
11-26-2008 01:41 AM
Altenbach,
Thanks for the quick draft, it really helps..
(No wonder my program is not working..it's too complicated!!~ haha)
Anyway, I have tried to simplify as per your advised.
Looking at the program, i only manage to run my real.vi if i tick the checkbox in sequence without skipping any checkbox.
If i missed even one check box, this error message come up:
Error 1077 occurred at Property Node (arg 1) in real.vi
Possible reason(s):
LabVIEW: Invalid property value.
Property Name: Active Plot
Please advise.
regards,
Roziela Sharib
11-26-2008 01:50 AM - edited 11-26-2008 01:56 AM
Roziela wrote:Looking at the program, i only manage to run my real.vi if i tick the checkbox in sequence without skipping any checkbox.
If i missed even one check box, this error message come up:
Oh sorry, yes, we need to make a small modification as follows, of course:
(increment only in the true case. The other case is wired across).
11-26-2008 02:05 AM