I have a VI that has become unresponsive to user input. Clicking the X has
no effect, the menu will not come up, etc. I would like to view the block
diagram to try to establish how the VI got in this state.
I designed a VI that lists all VIs in memory and allows me to show the front
panel, abort the VI, and ideally to display its block diagram. To show the
front panel and abort the VI I am using VI Server. I was hoping that there
would be a method or property that displays the block diagram but I cannot
find one.
I have seen in NI's Vision toolkit, that they are able to display the
diagram of a VI (when you elect to have vision build a VI based on a script)
and I am hoping to achieve this as well.
Thanks for any help
Denis Jolivet
"Denis Jolivet" < denis.jolivet@e-jaz.ca> wrote in message news:3f25764d@newsgroups.... > Can anyone explain a method to programatically display a VI's diagram? > > Thanks > > Denis Jolivet > >
You can use the VI server to print to HTML. That saves a picture of the block diagram.
Not sure whay you want to do it programmatically, though. If you have bugs, just leave the thing open, and click the HIGHLIGHT button on when you get to your sluggish part.
Steve Bird Culverson Software - Elegant software that is a pleasure to use. Culverson.com
Unfortunetly it isn't that simple. The VI is loaded and run dynamically, and the lock up situation happens before I can show the diagram. Thats why I want to be able to show its diagram from another VI.
"CoastalMaineBird" wrote in message news:506500000005000000EC0F0100-1042324653000@exchange.ni.com... > You can use the VI server to print to HTML. That saves a picture of > the block diagram. > > Not sure whay you want to do it programmatically, though. If you > have bugs, just leave the thing open, and click the HIGHLIGHT button > on when you get to your sluggish part.
Ahhh, I see. There is no property corresponding to "Block Diagram Is Open", AFAIK. Given that the diagram might be stripped (in an executable), I suppose that's reasonable.
If you show the subVI's front panel when you load it, AND if the subVI has the toolbar showing, then you can force a break with the BREAKPOINT button, which automatically brings up the diagram and shows you where it is executing.
Does that help?
Steve Bird Culverson Software - Elegant software that is a pleasure to use. Culverson.com