07-14-2010 10:50 AM
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?
07-14-2010 12:16 PM
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.
07-14-2010 12:18 PM
@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?
07-14-2010 01:19 PM
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).