LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LV Needing A Special Button Control With An Input



@smercurio_fc wrote:

@JoeLabView wrote:
 
It is a formal requirement within my company that forbids the use of Local Variables and Stacked Sequence Structures.

That's a bit excessive, in my opinion. Every programming construct has its use. It's their misuse due to inexperience that's the problem.
In more places "abuse" or "over-use", in one or the other way. Smiley Happy Am I right?
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 12 of 16
(858 Views)


JoeLabView wrote:
Property node is a better way to go as you can also use it to change the text value as long as you are displaying Caption text.

Joe,

I think you wanted to mention the Boolean Text, not the Caption Text.

Because, Boolean Text.Text enables you to change the value of the boolean control when we simply click even on the text. Smiley Wink

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 13 of 16
(858 Views)
Good catch Partha,
 
But what I wanted to say was that if you wanted to change the label of the button, you have to display the caption and change it, not the label itself because you can't change labels programmatically for obvious reasons.
 
🙂
0 Kudos
Message 14 of 16
(841 Views)

Thats what intrigues me, Joe.

When the Label name should(must) not be changed anytime during the program, why was the feature to change it left to the programmer on the first hand? Smiley Indifferent

IMO, NI should have disabled & greyed it out or not given at all. Smiley Happy

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 15 of 16
(824 Views)

Well..

It is possible to modify configue another VI which is not running.  Although I didn't try it, you may be able to change the label.  Or if you have a VI whose purpose is to programmatically create another VI (which is not running), then you would want to change or create the label. 

As you realize, you can't change a label while it is ruinning.  First of all, it wouldn't make sense, and second, there are objects behind the scene that have to keep track or references to that object.  So if the object name (reference, etc) would be dynamic at run-time, it would either be a headache to keep track of it, but most likely asking for trouble.. 😉

So it does have it's use..

RayR



Message Edited by JoeLabView on 05-08-2008 07:58 AM
Message 16 of 16
(809 Views)