LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI simple user interface TestStand login

Hello,

 

I was wondering on how to check who is logon so I can disable some buttons on the simple interface.

Also, how do I disable the loginLogout Front-End callback once we start the simple interface.

 

I'm using CVI 2009.

 

Thanks 

0 Kudos
Message 1 of 5
(3,650 Views)

Hi,

 

There should be a variable in StationGlobals about the last user logged-in.

You can use its value and check its priviliges to decide on disabling the buttons.

 

For disabling the FrontEnd callback, I suggest defining your own Model.

Copy-paste the NI model files into the <User> folder and modify them according to your needs.

Do not forget to adjust the settings of your sequence file to use the modified model.

 

Hope this helps,

S. Eren BALCI
IMESTEK
0 Kudos
Message 2 of 5
(3,632 Views)

Thanks for you information, but it's not exactly what I was expecting.

 

I more interested in using the activeX control to do that directly in the simple interface source code but I never used it before.

I want to learn how to use the function that starts with TSUI_.

 

I know that the TSUI_ApplicationMgrStart() will lunch the communication with TestStand and will ask for the login before everything if the LoginOnStart is True.  I want to modified that property to false so I wont ask the login until the operator press the loginlogout button by him self.

0 Kudos
Message 3 of 5
(3,621 Views)

Hi Goncalo,

 

I'd reccomend that you use some of the User Management features.  Here is some more info from the TestStand Online Help.

 

You can set permission and then disable certain features depedning on what permissions the users has. 

 

Post back if you have more questions!


Regards,

Dustin D

0 Kudos
Message 4 of 5
(3,602 Views)

Is there a website with some tutorials or exemple on how to use TestStand activeX in CVI?

 

I see that in the simple interface source code a lot of activeX jis used and I wish I could understand how it works.

 

Thanks

 

 

0 Kudos
Message 5 of 5
(3,595 Views)