01-15-2007 02:28 PM
01-15-2007 10:21 PM
Hi zorro,
Your question may betray a programming-style that most "old-timers" avoid - we don't use local-variables (much ) and we try to group related FP controls/indicators in clusters - this results in fewer terminals on the block-diagram! I know it's not what you wanted to hear.
Cheers!
01-15-2007 11:55 PM
01-16-2007 01:11 AM
I agree with tbd that there is rarelynever a reason for ton's of local variables.
Even if you feel you need many, it does not take much time to configure each right after creation and I see little use to globally change many from read to write or vice versa at a later point. An overuse of Local variable tend to make code hard to read and can easily cause race conditions. For one perspective have a look at some older discussions, e.g.: http://forums.ni.com/ni/board/message?board.id=170&message.id=112401#M112401.
To make a new local variable, I typically ctrl+drag an existing one (read or write as needed) and "right-click..select item" to assign the desired control/indicator.