LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Editing TestStand userlist form CVI whitout running a TestStand sequence

I am using CVI to create an own User Interface based on TestStand 2.0. I can insert new users and check them passwords and login names, but I can edit user's passwords. I have tried to use TestStand API fuctions ("TS_PropertyDisplayPropertiesDialog" and "TS_EngineDisplayEditUserDialog") to modify userList. Program loads those "Edit Users" dialog boxes but user's properties can't be modified. Are those properties "read only" ? Is it possible to edit user's password and properties without using a "TS_SeqContextGetProperty" ? My Operator Interface is not executed from TestStand by running a sequence instead it is executed from CVI. This is the reason why I don't get any sequence context references for th
e user properties edition. Thanks for your help!
0 Kudos
Message 1 of 3
(3,067 Views)
This question should be posted in the TestStand Forum
0 Kudos
Message 2 of 3
(3,067 Views)
So you are seeing behavior where in CVI you are creating a new engine, and then you use this engine to summon the EditUserDialog, however you are seeing all the fields in the new display are 'read' only? I think this problem is solvable simply by making sure to 'login' an administrator-level User prior to opening the dialog. For Example, if you use the functions TS_NewEngine(), TS_EngineGetUser(),TS_EngineSetProperty() before calling TS_EngineDisplayEditUserDialog (), and use them to acquire a handle to administrator and set TS_CurrentUser = administrator. Once TestStand has a user with appropriate permissions logged in, you should see that the fields in your Edit Dialog are now active and you can set new passwords etc.

If you are building a custom CVI operator int
erface, you will likely need this user-login behavior by default, so just make sure to include it in your code prior to any operations in the TS environment.

Regards,

Elaine R.
Applications Engineering
http://www.ni.com/ask
0 Kudos
Message 3 of 3
(3,067 Views)