LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to prevent user from making changes via the menu bar for Labiew built app.

When an application terminates in LabVIEW the menu bar becomes visable (even if it was removed when running).  How can an operator be prevented from making changes using the menu bar?  For example, the check box for "Run with multipule threads" under Tools>Options doesn't look like something we would want the user to be able to change.  How can the operator be disallowed from making this kind of change?
0 Kudos
Message 1 of 5
(2,747 Views)

A built application should have a Quit LabVIEW function in it and the front panel will completely close and disappear so there is no way for a user to access the menu.

 

So that you can have the function in your development system and not exit has been discussed numerous times. One typical way is to use the App.Kind property and only exit if the kind is 'Run Time system'.

0 Kudos
Message 2 of 5
(2,742 Views)
That might solve it.  However, it looks like the <app_name>.ini file is where changes are saved.  Is there a way to make the application only load default ini values when started up?
0 Kudos
Message 3 of 5
(2,719 Views)
You're afraid an operator will make changes to the ini file? Frankly, I've never worried about that since it would require a very sophisticated operator to know what would be valid and what wouldn't. It would probably take a fairly sophisticated LabVIEW programmer for that matter. I don't know of any way to prevent a modified ini file from being loaded.
0 Kudos
Message 4 of 5
(2,712 Views)

I just ran a test where the program I built deletes its own .INI file when it exits. This works. Changing the configuration (my VI does not exit LabVIEW) does not get saved after the VI has already ended. My VI runs the way I expected it to every run. It must be using some default settings. I didn't see anything in the .INI that was required. this may change if you need the webserver or VI server enabled.

 

     Rob

0 Kudos
Message 5 of 5
(2,710 Views)