09-19-2014 02:33 AM
Hello,
Recently I have been playing with subpanels. There is many of them in my project and it is very hard to debug them. Is there an easy way to show current subpanel block diagram?
I can click and allow to show block diagram or I can set breakpoint and make BD appear. But is there more elegant way that I am not aware off?
Solved! Go to Solution.
09-19-2014 02:51 AM - edited 09-19-2014 02:51 AM
09-19-2014 02:59 AM
I am doing that but sometimes subpanel gets message from top level vi and it is hard to simulate that before whole app is working.
09-19-2014 05:32 AM
well if you want to debug it , most probably you need to see what values you are getting and how you are using these values for that breakpoints are good.
09-19-2014 07:42 AM
@pawhan11 wrote:
I am doing that but sometimes subpanel gets message from top level vi and it is hard to simulate that before whole app is working.
If you know what the messages are, then you can test it. My advice would be to make a second application that just has your VI going into the subpanel and another loop that you can use to send messages from. You can then debug that VI in any way possible.
09-19-2014 08:13 AM
So lets say I run Main.vi, and it runs Panel.vi and inserts it into a subpanel in Main.vi.
What I will do is run Main.vi with the block diagram open. Then I will hold CTRL and double click on the Panel.vi subVI (with auto-tool off) and it will open the block diagram of the Panel.vi, even if the front panel of Panel.vi is currently in a subpanel.
This CTRL double click to open a block diagram works on non-running subVIs as well.
You can also add a breakpoint in Panel.vi but that maybe ran before it is inserted into the subpanel which would cause an error when the front panel is already open and you try to insert it into a subpanel.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
09-19-2014 08:27 AM
@Hooovahh wrote:
So lets say I run Main.vi, and it runs Panel.vi and inserts it into a subpanel in Main.vi.
What I will do is run Main.vi with the block diagram open. Then I will hold CTRL and double click on the Panel.vi subVI (with auto-tool off) and it will open the block diagram of the Panel.vi, even if the front panel of Panel.vi is currently in a subpanel.
This CTRL double click to open a block diagram works on non-running subVIs as well.
You can also add a breakpoint in Panel.vi but that maybe ran before it is inserted into the subpanel which would cause an error when the front panel is already open and you try to insert it into a subpanel.
I didn't know about that. It makes it much faster now. Thanks 🙂
04-06-2015 08:38 PM
hi there, here is one simple subpanel solution, try it:
https://decibel.ni.com/content/docs/DOC-41897
regards.
04-07-2015 06:05 AM - edited 04-07-2015 06:06 AM
I think if you right click on the subpanel in edit mode and tick the 'allow user to open diagram' option you can then right click on the VI in the subpanel while it's running and 'View block diagram'. This will give you the block diagram of the VI/instance currently inserted into the panel. Very useful for debugging!
Edit: Ah, after re-reading I see you already mentioned that.