LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
nzamora

Control or Indicator terminal > Change to Local Variable

Status: Declined

When you right click on a Control, Indicator or Constant terminal, you get the options to change it to the other two. A new option to Change to Local Variable would replace the terminal with a local variable for that control and put the terminal grasped by the mouse for the user to place on the block diagram again. In the case of a Constant, it would replace the constant with a Control first.

 

2 Comments
AristosQueue (NI)
NI Employee (retired)

Given that local variables create serious problems in most LabVIEW programs and given that there are usually (not always but usually) superior methods to write G code without using local variables, NI has generally opposed any features that make it easier to use them. If you wish to create this functionality for yourself, you could do so by writing a custom right-click plugin. To begin creating a shortcut menu plug-in, run the following utility VI:

<LabVIEW directory>\resource\plugins\PopupMenus\Create Shortcut Menu Plug-In From Template.vi
Darren
Proven Zealot
Status changed to: Declined