Jump to content

Are disabled structures compiled?


p27182

Recommended Posts

I certainly consider myself a noobie here and with LV, my coworker just showed me how he uses the disable structure- I think it will prove to be useful for me in the future.

I wanted to ask a question though- if you tell LV to build an EXE from VI, and the disable structure has some code disabled, is any of that disabled code compiled into the exe? or just left out?

thx for any info

-pat

Link to post

If I recall correctly, the code in the disabled structures is treated the same as a comment in text based langauges. It does not get included in the built executable.

LabVIEW does allow you to build a 'debug' exe. I don't know if the disabled code would be included or not...

Link to post

LabVIEW does allow you to build a 'debug' exe. I don't know if the disabled code would be included or not...

My impression is that this feature allows you to debug a built executable the way you would VIs, to some extent (see block diagrams, and the like). Since the disable structures are on the block diagram, I would think would have to be included? This may not force subVIs in disabled cases to be built and linked, however.

Link to post

If I recall correctly, the code in the disabled structures is treated the same as a comment in text based langauges. It does not get included in the built executable.

Yes, this is what the help says:

Diagram Disable Structure

In the Diagram Disable structure, shown as follows, LabVIEW does not include any code in the Disabled subdiagrams when compiling.

LabVIEW does allow you to build a 'debug' exe. I don't know if the disabled code would be included or not...

I would have assumed debug mode to be similar to edit mode - but it probably doesn't matter what it does because you can't edit the code (obviously).

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.