LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Conditional disable structure

Here we go.........
Message 11 of 22
(2,054 Views)
Thanx mathan.Tossed u a fiveSmiley Very Happy
Message 12 of 22
(2,050 Views)

Thanx dear muks,

You helped(starred) me in lot of cases especially today. It's my pleasure to help you all.

Thanks,

Mathan

Message 13 of 22
(2,046 Views)
I always wire a true/false constant to a normal case structure for debugging sake. Is conditional disable structure any different?
Message 14 of 22
(2,003 Views)
You're mixing up conditional disable structure and diagram disable structure.
AFAIK, the diagram disable structure and a case structure with a T/F constant is equivalent (in both cases, the code in the disabled case isn't compiled).
As mentioned in the earlier replies, conditional disable structures have a different purpose (e.g. run code depending on OS type).

Daniel

Message 15 of 22
(1,995 Views)
In LV 8.0 and later, true/false structures which are wired with a constant are optimised to not compile code which can never execute. Related to this is if you inport a pre 7.1 vi into 8.0 or later, then constants will be replaced with hidden controls, so as not to break code. As I understand, a disable diagram structure also gets ignored by the compiler.
 
Look up conditional disable (or enable!) structures in the example finder. or browse to \Labview x.x\examples\general\disable structures\conditional disable stucture.
 
As has been mentioned above, they can be used to tell the precomp to ignore frames, depending on what parameters have been defined. You can use this for differentiating between development code/production code. or compiling for different operating systems. The former is used as a demonstration in the LV Intermediate training sessions.
_____________________________
- Cheers, Ed
Message 16 of 22
(1,986 Views)
You are right dan_u and thanx yenknip for the explanation . Will go through the example and post again if i am stuck
Message 17 of 22
(1,978 Views)

Does it possible to change the value of the conditional symbol from the block diagram? 

 

Thanks 

0 Kudos
Message 18 of 22
(1,794 Views)

No, it is not possible to change the symbol values from the block diagram, for the simple reason that they are not a compiled resource. It is a tool for controlling the LabVIEW precompiler, similar to the #pragma command in C.

 

As mentioned above it is useful for instructing the compiler what to include in a project build, for instance when porting the program to another operating system.

_____________________________
- Cheers, Ed
Message 19 of 22
(1,775 Views)

Are you sure?

Because I can read the description of the project as you see in the picture I have attached.

Thanks

0 Kudos
Message 20 of 22
(1,758 Views)