The Daily CLAD

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

Re: Diagram Disable Structures

SercoSteveB
Active Participant

A VI contains the following Diagram Disable Structure.  Is the VI Run Arrow broken?

NOTE:  The Enabled case of the Diagram Disable Structure is empty (contains no wiring) and the rest of the VI does NOT contain any errors..

Broken Arrows inside Disable Structure 06_03_2015.png

a) YES

b) NO

Comments
crossrulz
Knight of NI

TRUE FALSE, assuming the rest of the code is runnable.

Just realized I misread the question last night...



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
rsmrostov
Member

not broken, vi runs

Not applicable

b)

A.Bernau
Member

b

LordNobady
Member

b.


Learning LabVIEW since January 2013
DesasterMaster
NI Employee (retired)

B

--------------------------------------------------------------------------------------------------------
Work with NI Hard- and Software for about 15 years now.

Certified LabVIEW Developer & TestStand Developer/Architect

--------------------------------------------------------------------------------------------------------

There are only two ways to tell somebody thanks: Kudos and Marked Solutions
nik35324
Member

NO

YES: Assuming error in the rest of the code.

SercoSteveB
Active Participant

Post modified to include a note that the rest of the VI does NOT contain any errors.

sriveni
Member

B

a.guzman_87
Member

B

MrStevenUND
Member

B

shargurudk
Member

And B. The vi wont show broken arrow

whitecr
Member

Ans: B.

If we disable any node or wiring in block diagram LabVIEW compiler will not complie the code inside the disabled block diagram. So there won't be an broken arrow in this VI.

Nice question Steve. Pls post some other questions regarding LabVIEW compiler.

ashwinilele
Member

B

SercoSteveB
Active Participant

Answer: B.  Nice one crossrulz, rsmrostov, DavidCorney, Andreas23, LordNobady, Dennis Amelung, nik35324, sriveni, a.guzman_87, MrStevenUND, shargurudk, whitecr & ashwinilele

whitecr LabVIEW Compiler questions coming up the week starting the Monday15th March.

ramesh44
Member

i am quite confused with this question and the previous question both looks similar but answer is different can any one explain me why is it so

crossrulz
Knight of NI

Take a closer look at the output tunnel.

This one has a dot in the middle to indicate that the tunnel is set to "Use Default if Unwired".  Therefore you do not have to wire anything up to that tunnel in the other case.

The other question has nothing in the middle.  So that "Use Default if Unwired" has been turned off. You therefore have to wire up every case, or for the Diagram Disabled Strucuture the enabled case.  Since it was noted that the enabled case was empty, you have a broken run arrow.



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