Jump to content

Debugging code with subpanels quirks.


Recommended Posts

I'm in a situation where I want to probe a subpaneled VI while it's running. While the subpaneled VI is idle, I probe it and run the calling VI. I get the message:

Error 1144 occurred at Invoke Node in ...Possible reason(s):LabVIEW:  Cannot insert VI in a subpanel control because VI is already open.

Doh! Oh well. I then decide to probe the diagram after the Vi has been subpaneled. This seems to work provided you have acces to the diagram. You can do this if you have the vi on the diagram of another VI and then ctrl+dbl-click the icon. This takes you to the diagram.

Does anyone know of a better way to initiate a probing session on a subpaneled VI?

Link to comment
  • 1 year later...

Place a breakpoint in the subpanel VI.

Save it and close it.

Run the Calling VI.

When it hits the breakpoint, it will pop up the subpanel.

Just be careful to eventually remove the breakpoint from the VI when it is not in the subpanel.

Alternatively, you can turn on the Allow view of BD option when you right click on the empty subpanel control at edit time.

then all you have to do is right click on an open portion of the loaded subpanel vi and you should see a 1 item list to view the BD.

Hope that helps

~,~

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.