VI Analyzer Enthusiasts Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Check if FP/BD Open Maximized

Hi all,

 

I started making a VI Analyzer test that I thought was going to be trivial to make. I wanted a test that will fail if either the front panel or block diagram open maximized. For the front panel, it can theoretically be done without opening if you check the bounds and ignore windows scaling and assume it was last saved on a setup with 1920 x 1080 screen size and landscape orientation. For the block diagram, every bounds property only returned the bounds of the actual code not the bounds of the window. In short, the only way I could figure out to reliably obtain that information is to actually open them and check the Front Panel.State and Block Diagram.State properties. See the attached file.

 

Is there any way to do this without actually opening the VI? Windows knows how to open it, so the information has to be obtainable somehow, right?

Redhawk
Test Engineer at Moog Inc.

Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.

0 Kudos
Message 1 of 3
(173 Views)

I am not aware of a way to find out of a VI was saved with its front panel and/or block diagram maximized. I'm sure there's a flag somewhere in the binary of the VI but I don't know what it is or how to retrieve it. I searched through VI Server properties and couldn't find anything.

Message 2 of 3
(158 Views)

Thanks for taking the time to search Darren. I tried saving a non-maximized copy of the VI and then comparing the binaries, but I quickly realized it wasn't worth the effort. What I have done already technically works, so I'll take it.

Redhawk
Test Engineer at Moog Inc.

Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.

Message 3 of 3
(135 Views)