LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programatic showing of Diagram

Can anyone explain a method to programatically display a VI's diagram?

Thanks

Denis Jolivet
0 Kudos
Message 1 of 6
(2,876 Views)
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
>
>
0 Kudos
Message 2 of 6
(2,876 Views)
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


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 3 of 6
(2,876 Views)
Thanks for your throught.

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.
0 Kudos
Message 4 of 6
(2,876 Views)
Drop a copy of the VI into a new diagram, set the VI properties so that the VI doesn`t execute upon opening, and open it from there.

You should be able to see the diagram then (if it has one...).

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 5 of 6
(2,876 Views)
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


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 6 of 6
(2,876 Views)