LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

is there an easier way to create a local variable?

I want to create a local variable, but I don't wont to have to find the terminal first and then use the option create-local variable. Is there a way to make a copy of an existing local variable? If I use the CTRL-C and CTRL-V option another terminal is created too.
0 Kudos
Message 1 of 5
(2,942 Views)
Hi mipo,

press the left mouse button upon a local variable, hold down the CTRL-key (you will see a plus sign in the mouse cursor), move the mouse, release the button and the key. I will have another local variable of the same control or indicator.

Waldemar
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
Message 2 of 5
(2,942 Views)
Great! That was exactly what I wanted. It even works if more than one variable is selected.
Thanks,
Michael
0 Kudos
Message 3 of 5
(2,942 Views)
> Great! That was exactly what I wanted. It even works if more than one
> variable is selected.

This may not apply in your situation, but I feel obliged to make this
warning anytime I see this sort of posting. If you find yourself making
too many local variables, it is worth checking to see if you are doing
things the best way.

If you are using the locals for communication between parallel loops or
for UI -- writing to controls, then keep trucking. That is why they
were added. If you are using them as storage locations, like variables
in BASIC or C, or to avoid wires, then you should definitely read the
devzone article about race conditions and the usage of globals/locals.
If not, you will probably find yourself with some monument
al debugging
sessions later on.

If you have questions, fire away.
Greg McKaskle
0 Kudos
Message 4 of 5
(2,942 Views)
Hi,

This is ofter the fastest way to do it. This is just an addition..

You can select ANY local, and either right click it, and use select item to
find the correct control, or use the little hand, and left click it to
select the correct control directly.

Regards,

Wiebe.

"waldemar.hersacher" wrote in message
news:50650000000500000061CD0000-1042324653000@exchange.ni.com...
> Hi mipo,
>
> press the left mouse button upon a local variable, hold down the
> CTRL-key (you will see a plus sign in the mouse cursor), move the
> mouse, release the button and the key. I will have another local
> variable of the same control or indicator.
>
> Waldemar
0 Kudos
Message 5 of 5
(2,942 Views)