ni.com is currently experiencing issues.

Support teams are actively working on the resolution.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Making configuration screen read only

I'm very new to LabView so please forgive me if the question seems rather stupid. We all have to start somewhere I guess.
 
I've been tasked with looking at an application written in Labview 6.
 
Currntly there is a screen in the application that allows configarable parameteres to be changed by the users. The modification requires that some users are only allowed a read only view of this screen.
 
While I'm not looking for an all out answer I'd really appreciate some pointers in the right direction as to the ways I may be able to implement this.
 
Thanks
 
Monk
 
 
0 Kudos
Message 1 of 16
(3,292 Views)
Hi
 
You can use a propertynode of your vi to get the references of all the controls you have on the FP. Then you can iterate over this array and use another propertynode, which is wired to the reference, to disable the controls.
 
Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 2 of 16
(3,280 Views)

"Monk" <x@no.email> wrote in message news:1148029808565-367713@exchange.ni.com...
I'm very new to&nbsp;LabView so please forgive me if the question seems rather stupid. We all have to start somewhere I guess.
&nbsp;
I've been tasked with looking at an application written in Labview 6.
&nbsp;
Currntly there is a screen in the application that allows configarable parameteres to be changed by the users. The modification requires that some users are only allowed a read only view of this screen.
&nbsp;
While I'm not looking for an all out answer I'd really appreciate some pointers in the&nbsp;right direction as to the ways I may be able to implement this.
&nbsp;
Thanks
&nbsp;
Monk
&nbsp;
&nbsp;


Hi,


The easiest (but not necessarily the nicest) way it to put a big transparent button above it. Hide the button if the login is ok, show it (nothing is actually shown, it is transparent) if not. Use the property node "Visible" to show/hide the button.


You'll also need to disable tabbing (right click each control, and select Advanced>Key navigation>Disable this control when tabbing).


A better way is to put all controls in a cluster (this can be a disaster if you have a lot of them, wired and all). Then you can simply disable/enable the cluster with a property node "Disable".


You can also create "Disable" property nodes for each and every control and enable/disable all of them. In LV7> you can put this code in a subvi making it a lot cleaner.


Hope it helps,


Wiebe.
0 Kudos
Message 3 of 16
(3,277 Views)
Thanks guys for taking the time to reply.
 
Bethko I wonder if you can give me a bit more guidance as to how to do this. As a learning exercise I've set up a temporary vi with some configarable parametres. Not sure where to go from here to implement what you say though. Sorry my experience is very limited and the help file doesn't really tell me that much.
 
Thanks
0 Kudos
Message 4 of 16
(3,268 Views)

I hope this helps you. I don't know if the properties are the same in your LV-version, but the way to do it is similar to mine.

Thomas

 

Message Edited by becktho on 05-19-2006 01:09 PM

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 5 of 16
(3,266 Views)

Conceptually I understand what you are trying to do Bethko but I still don't know how to link this into my vi to disable the controls on the FP?

The example I've used is one of the examples from the help files. It has three controls on the left hand side which I'd like to disable.

I've taken a screen shot of what I've currently got in place can you show me how I add your bit in so that I can disable the relevant controls?

Thanks

 

0 Kudos
Message 6 of 16
(3,262 Views)
There are several possibilites. You could use a sequence or the dataflow.
 
The constant which is wired to the disabled property needs to be replaced with a control. If you use your vi as a sub vi, you will have to connect this control to a terminal so that the calling vi can set the disabled state.
 
Simply said, just place my code so that it executes before the while loop starts.
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 7 of 16
(3,256 Views)
OK I've put your snippet before my code. Screenshot attached When I run the vi it still lets me modify the limit, normal image and high image controls on the left. Does it need to be wired into the while loop in anyway?
 
 
 
 
0 Kudos
Message 8 of 16
(3,250 Views)
You have to tell LV somehow, what is to execute first. You can do this by either using a sequence structure or using the dataflow.
 
If you use the sequence-structure, place my code in the first frame to execute and your code in the second frame.
 
If you want to use the dataflow, wire for instance the output of the propertynode, which is in the for loop, to the while loop.
 
This should work.
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 9 of 16
(3,246 Views)

Tried both of them options but they still let me modify the configurable parametres on the left. I've included the updated vi as an attachment.

Sorry for taking up so much of your time on this Bethko. Your help is very much appreciated.

0 Kudos
Message 10 of 16
(3,242 Views)