03-09-2009 10:37 AM
Hello,
can I have two indicators of the same variable on the fron page??
I can do this by add another variable and put the value of the first into it but it's a long program.
is there an easy way to do this?
Thanks,
Etay
03-09-2009 10:42 AM
03-09-2009 10:49 AM
First, thanks for the quick answer 🙂
maybe I''ll more clear about whatr i'm asking.
I have a numeric control and it changes through the program many times using local variable. on the front page i can see the this chages becasue there's indicator.
now, i want to have a second indicator on the front page for the same numeric control.
how can it been done?
Thanks,
Etay
03-09-2009 10:52 AM
You already have a valid reply to your query but the wording of your Q hints at potential issues in your code.
A control or indicator are not variables, they should be thought of as a graphical "printf".
Variables live in wires or other diagram structures.
It may sound like I am splitting wires but if you get this idea wrong in LV you could be setting yourself up fro trouble.
Ben
03-09-2009 11:28 AM
OK.
Ben, maybe I'm a slow catcher but I still don't get it.
after I defined Numeric Control on the front panel I can see the value of it. This value changes through the program.
what I want is to have another display of the same numeric control at a different spot on the front panel.
Thanks for your patience,
Etay
03-09-2009 11:38 AM - edited 03-09-2009 11:39 AM
03-09-2009 11:40 AM
How did you create the original front panel indicator? Did someone do this for you or did you copy some code? If you don't know how to create a front panel indicator, that might explain your comment about numerous local variables. That points to a serious design flaw in your program.
If you need to learn how to create controls/indicators and wire them up, I suggest spending quite a bit of time with the free tutorials. You might want to search the forum for some opinions on the use of local variables instead of wires as well.
03-09-2009 12:23 PM - edited 03-09-2009 12:25 PM
03-10-2009 03:17 AM
Hi Gerd,
In the example you send you defined Numeric control and Numeric indicator (which you named as 'same numeric') and you put inside it the the value of the numeric indicator.
so on the front panel you can see the Numeric Control and the Same numeric.
My problem is as follow:
I have a long program in which my numeric control changes a lot during the program. i don't want to go over all the program and connect 'same numeric' indicator to it.
I just want to see it's display in both places on the fron panel.
is it possible?
Etay
03-10-2009 03:22 AM
Hi Jim,
unfortunlly I use LV 8.2 so I can't use the example you posted.
loved your line from princess buttercup...
Etay