The Daily CLAD

Community Browser
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Conditional Disable Structure - Valid Conditions

SercoSteveB
Active Participant

Consider the Conditional Disable Structure shown in the VI below.

Conditional Disable.png

Which of the following are valid Conditions for subdiagrams?

NOTE Multiple answers may apply.

a) TARGET_TYPE==RT

b) TARGET_TYPE==Mac

c) TARGET_TYPE==unix

d) TARGET_TYPE==FPGA

e) RUN_TIME_ENGINE==TRUE

f) RUN_TIME_ENGINE==False

g) TARGET_BITNESS==16

h) TARGET_BITNESS==32

Comments
LordNobady
Member

A, B, C, D, H


Learning LabVIEW since January 2013
mini09
Active Participant

The answers are A,B,C,D, PockectPC, DSP and Embedded. Not sure of H?

mini09
Active Participant

I`ve not worked on conditional disabled can i`ve a brief quotes on place were we can use in our program easily.

crossrulz
Knight of NI

I know it is really picky with capitalization...

I know for sure F (because I use that one all the time).

But I will go with A, B, D, F, and H

The conditional diagram disable is really useful for when you want your program to behave slightly differently on different targets or between the development environment and the run-time environment.  For instance, I put code to close the front panel of a VI when I am running in the Run-Time Engine (ei running an EXE) but not when I'm in the development environment.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
MrStevenUND
Member

I'm guessing here, and assuming capitalization matters.

A, B, D, F

I expect C (unix) should have some sort of capitalization to be valid

F is valid and E is not because Case Statements use True/False, not TRUE/FALSE

I have no idea what Bitness is.  If it has to do with the operating system, H (32 bit OS) is valid.  Going with this assumption, DOS/Win3.1 was 16-bit but I believe this feature to be far newer than Win3.1, so the programmers probably did not include it.

PatCarbo
Member

A,B,D,F and H are valid conditions.

Details can be found in LabVIEW help under "Conditional Disable structures".

SercoSteveB
Active Participant

Answer: A,B,D,F & H.  Nice one crossrulz & PatCarbo

They have a little panel to fill in the conditional statements so when it come to doing this for real you can't really get this wrong.

University_of_Sussex
Member

ABDF & H  are the answer. An error occured for every case such as run time engine or target type or target bitness it comes up with a little window of all the valid input it will take in.