Jump to content

Removing Block Diagrams


Recommended Posts

Hello,

I have a theoretical question about removing block diagrams. I know that removing block diagrams will make the vi unable to run on different versions of LabVIEW, different OS's, etc etc. However, I was wondering whether if you remove the block diagram of a certain vi, and then edit and save sub-vi of the vi whose block diagram you just removed, will the vi use the original version of the sub-vi, or the new updated version?

Thanks in advance for any info!

I did run a quick test to see if I could answer my own question (should have done this before I posted originally), and found that the vi will update to the new version of the sub-vi after the block diagram has been removed. I only tried this with a non-polymorphic non-reentrant vi. Anyone have any more information on this topic?

edit: I did run a short test on this myself, and found that the vi will use the new sub-vi after the BD has been removed. This was using a non-polymorphic, non-reentrant vi. Anyone have any more info on this?

Edited by alexp123
Link to comment

The VI will have to update to the new version, because it doesn't keep any information about the subVI other than what it needs (name, connector data, etc.).

Two pitfalls I can think of:

  • You change the connector of the subVI. The caller VI will probably break.
  • You change the inplaceness of data that goes through the subVI. If the caller holds this data itself and NI didn't write this correctly, you could have a data-erasing bug on your hands. That said, this is just a guess as to something that might happen. It's quite possible that NI did handle this case.

In general, I would say that any VI which has its BD removed should not have its subVIs changed under its feet.

Link to comment

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.