LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to lock the size of front panel so that user can't see hidden objects?

Hi,

 

I'm building an labview application using Labview 14.0. I set the minimum size of my main VI window and removed the scroll bars. But people could still increase the size of the window and see my hidden objects. How to prevent that? Is there any way to LOCK the size of a front panel so the size is unchangeable?

 

Your help will be greatly appreciated!

 

Thanks very much!

0 Kudos
Message 1 of 24
(7,230 Views)
Unchecked the box in VI properties that says:

Allow user to resize window

Mike...

Ps You'll find it under window appearance click the customize button. Right column...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 2 of 24
(7,212 Views)

Well, YES! VI Properties>>Windows size

sets those size properties

 

VI Properties> Window appeance>>Customize! has a checkbox for "Allow user to resize window"  have you pressed Ctrl+I before?  No disgrace if you haven't but, some of those options are usefulSmiley Wink


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 24
(7,208 Views)

Mike and Jeff,

 

It's good to know that  Ctrl+I can get to VI Properties directly. 🙂 Thank you all for your reply! I'm sorry I forgot to say that I meant when the application stopped running. When it's running, there is no problem. But when it's not running, that unchecked box doesn't prevent user resizing the window of application.How do we lock the window size when it's not running?

 

 

 

 

 

 

 

0 Kudos
Message 4 of 24
(7,082 Views)

I don't think you can? When it's not running it's in 'development mode' so you can resize it as you like. Why do you want to do this?

 

You can always:

- Set the front panel size / reset the origin position when the VI runs

- Have your application run as an executable and exit (close the front panel) when it stops


LabVIEW Champion, CLA, CLED, CTD
(blog)
Message 5 of 24
(7,073 Views)

You could also select "Top Level VI" from the  "Window Apperance" category and it sets it up pretty decently (including disabling resize in Run Mode - plus some other stuff).  I sometimes use that for a template and then click customize to change things that I don't like about it.  (Don't worry, customizing only sets up a custom look - it doesn't change the "Top Level VI" settings itself.)

 

But as Sam says, if you're trying to do this in Edit Mode, I don't think there's a way.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 6 of 24
(7,060 Views)
Preventing a user from changing the window size in edit mode would seem to be the least of your problems. You don't care that the code itself can be changed?
0 Kudos
Message 7 of 24
(7,040 Views)

Sam, Bill and Dennis,

 

It's an .exe and it will stop running at certain conditions as designed on purpose -- so certian instructions will only be displayed once when the program runs. As long as the program keeps running, they can test boards seamlessly without reading the instructions again and again. It's not in edit mode since it's a built excecutible. Right?

 

Regards.

 

 

0 Kudos
Message 8 of 24
(7,024 Views)

@Dennis_Knutson wrote:
You don't care that the code itself can be changed?

For that you can lock the VI with a password Smiley Very Happy


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 9 of 24
(7,019 Views)

If it's running as an executable, you should hide/remove the 'run' arrow. When your top level VI finishes, your program should exit and the process should leave memory.

 

It sounds like you need to rethink how your application works as an executable so that it goes 'idle' when the test finishes rather than the VI finishing execution completely - then you'll have a button that allows you to run another test rather than the restarting the VI.


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 10 of 24
(7,012 Views)