NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Teststand api Creating/deleting Users

Hi,
I am using Teststand API with Labwindows and i have a problem with creating/deleting Users.
In fact, to explain easily my problem when you use the full-featured Teststand  with the "CreateDeleteUsers.seq" sequence and create a user, then close the full-featured Teststand, you loose your new users in the previous opening.
Whereas, with the Teststand 4.0, with the same "CreateDeleteUsers.seq", when you close, it propose to save the changed file "UserManagement" (Users.ini) and everything's fine...
 
And as i am using a Labwindows project to login/logout to teststand, i am using TS_... functions i can't find a way to save or to have this save popup to keep my users.
 
I hope that i am clear, and that someone will be able to help me ! 
0 Kudos
Message 1 of 3
(3,247 Views)

Hello,

As you could see in the following KB: How Can I Edit and Save Changes for the Current User? you have to get the users file as a PropertyObjectFile as it's done in the CreateDeleteUsers sequence, and then use two methods, IncChangeCount() wich is also already done in the example sequence, and the SaveFileIfModified().

See attached file below for the example sequence changed with the file saving.

Regards,

 

Olivier L. | Certified LabVIEW Developer


Message 2 of 3
(3,211 Views)
Merci beaucoup Olivier,
Vous m'êtes d'une grande aide !
 
0 Kudos
Message 3 of 3
(3,203 Views)