NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to access User-rights in a statement during testplan is running?

Hello,

i am using TS3.5 and LV 8.5.

In Teststand there is the UserManager. I defined there a boolean symbol.

Then i have a Labview-Runtime that runs my teststand-sequence via activeX. On my operatorinterface is a LED that is only enabled when the boolean in the UserManager is TRUE.

Now my question is: How can i access the loaded user-infos from inside the running testplan?

That means:

1. i start my labview-OP

2. load the teststand-sequence

3. The boolean-value in teststand-usermanager was saved with false so on the  op the LED is off

4. press start in the OP

5. Inside of the sequence the should be a statement that changes the value of the usermanager to true to light the LED

 

I tried

StationGlobals.TS.CurrentUser.MyLED = FALSE

RunState.ThisContext.StationGlobals.TS.CurrentUser.MyLED = False

ThisContext.StationGlobals.TS.CurrentUser.MyLED = FALSE

 

What is the correct access-point to the value?

 

thx for your help

0 Kudos
Message 1 of 4
(3,344 Views)

OnlyOne -

 

I'm not sure I fully understand your question. Are you trying to modify a User Privilege mid execution? Could you please provide a clearer explanation? Screenshots of which User property you're talking about might be useful.

 

Thanks!

Manooch H.
National Instruments
Message 2 of 4
(3,321 Views)
Yes, i want to change a user Privilege during execution. Is this possible?
0 Kudos
Message 3 of 4
(3,318 Views)

OnlyOne,

 

Could you please provide a simplified Users.ini file that displays the Users and this "boolean" that you've defined.

Manooch H.
National Instruments
0 Kudos
Message 4 of 4
(3,310 Views)