LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Generating a report w/ block diagram & programatically specified case structure?

Hi,

 

I am trying to generate a report that shows the block diagram for a programatically specific case structure.

The case structure has ~90 cases and is selected by a custom control.

I'm on Labview 8.5

 

I've found with the Append Block Diagram to VI, I can print out all of the cases (setting hidden frames to true), or just one case. However, I cannot select which case it shows, it always prints out whatever case has been manually selected on the block diagram, but I want to be able to programatically select it.

 

I've tried to do the same thing by opening a vi reference, and using BD.Get Image Scaled, and cannot get that working as desired either. I've also tried setting the value of the control before getting the image, but that doesn't help.

 

Any thoughts?

 

 

 

 

0 Kudos
Message 1 of 4
(2,638 Views)

The MultiFrameStructure class has a VisFrame property which you can write to to control the visible frame. You'll need to install the scripting API to have access to this.


___________________
Try to take over the world!
0 Kudos
Message 2 of 4
(2,625 Views)

 


@tst wrote:

The MultiFrameStructure class has a VisFrame property which you can write to to control the visible frame. You'll need to install the scripting API to have access to this.


Isn't this a bit tricky in LV8.5?

 

0 Kudos
Message 3 of 4
(2,618 Views)

Probably.

 

This VI is backsaved to 8.5 and has the basic functionality. I don't know if the traverse VI shipped with 8.5, but hopefully this should be enough. If not, LAVA has info on how to access the scripting features in older versions (although less between 8.0 and 8.6).


___________________
Try to take over the world!
0 Kudos
Message 4 of 4
(2,601 Views)