07-09-2025 02:37 PM
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?
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.
07-09-2025 04:07 PM
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.
07-10-2025 07:52 AM
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.
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.