LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

local variable

Hi Friends,

what could stop an element from giving signal to its local variable

regards
gerry
0 Kudos
Message 1 of 12
(4,574 Views)
Hi gerry,
afaik nothing. Where do you use a local variable and why? Can you explain please? Maybe there is a better way for you.
Mike
0 Kudos
Message 2 of 12
(4,571 Views)

One way is not to use Locals.

There are many ways to avoid them.  If you post your code, maybe we can help.

R

0 Kudos
Message 3 of 12
(4,568 Views)
My guess is that you have a wire going through a tunnel and the value on the other side cannot be determined until the structure that has the tunnel actually completes.
0 Kudos
Message 4 of 12
(4,553 Views)
A typical example is when you tunnel out of a loop (or sequence) to the terminal's local. The local will not get updated until the loop or sequence finsihes. To update one's own local, you need to be within the same loop, or have a parallel process. No tunneling.
Richard






0 Kudos
Message 5 of 12
(4,551 Views)
Hi again Friends

i thank u all for ur fast reply. attached is the VI and the problem is, that when the motor nears the sensor(reference sensor) the Round LED at the Frontpanel shows
but the local variable(DI9_Ax_RefB) shows  false.


regards again All
gerry
Download All
Message 6 of 12
(4,535 Views)
Right-click on your local variable and do a "find terminal". You will find that it points to a terminal with a similar name that is not connected to anything.


Message Edited by altenbach on 07-14-2008 08:17 AM
0 Kudos
Message 7 of 12
(4,529 Views)
Looks like we have another entry for Ray's list.
0 Kudos
Message 8 of 12
(4,523 Views)
thanks altenbach

however that was the wrong VI, attached is it!
0 Kudos
Message 9 of 12
(4,512 Views)

smercurio,

LOL!  Yes.. it would probably fit the bill..  😉



Message Edited by JoeLabView on 07-14-2008 11:33 AM
Message 10 of 12
(4,510 Views)