LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Block diagram errors even when block disabled

Should LabVIEW give the broken arrow for errors within a disabled block?

 

I have a block disabled where way down in the call tree from a VI within that block there is a broken VI.

Nothing else calls this broken VI except the VI from the disabled block.

 

Why should I get the broken arrow if the top level caller is disabled?

TestStand 4.2.1, LabVIEW 2009, LabWindows/CVI 2009
0 Kudos
Message 1 of 7
(3,018 Views)

Hi Believer,

which error message do you get if you press the broken arrow?

Normally the code in the diabled structure is not taken into account.

 

Mike

0 Kudos
Message 2 of 7
(3,007 Views)

Are you sure the erro is not in the flip-side of the disable structure?

 

Can you post an image?

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 7
(3,003 Views)

Thanks for the thoughts guys.

I have discovered that the errors in the disabled section appear in the error list box when there are other 'real' errors.

When there are no other errors, then the errors in the disabled section do not affect the run arrow.

 

Typically commented or disabled code is ignored by a compiler - and so I think it should be the case with LabVIEW too.

 

TestStand 4.2.1, LabVIEW 2009, LabWindows/CVI 2009
0 Kudos
Message 4 of 7
(2,983 Views)
I don't see this behavior in 8.5.  Exen bad wires are not reported if they're in a disabled diagram.
LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 5 of 7
(2,979 Views)

NIquist, in my case the errors in the disabled structure only show up in the error list if there are other legitimate errors elsewhere.

Are you saying that in 8.5 even if there are other legitimate errors the ones in the disabled structure are not reported?

TestStand 4.2.1, LabVIEW 2009, LabWindows/CVI 2009
0 Kudos
Message 6 of 7
(2,969 Views)
Yep, I just checked and no errors are reported from bad code that is disabled.  If I force an error in another part of the diagram I get a broken arrow and only that error shows.  I still don't see errors from the disabled block listed.
LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 7 of 7
(2,965 Views)