NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Update Users.ini file

I have a LabVIEW utility that updates the Users.ini file with new user names and adds users to groups.  After updating, the utility then calls a VI which has the ReloadFromDisk method. However, when I go to TestStand (which is open), I still get a prompt indicating that Users.ini has been externally modified.

 

I need to externally modify Users.ini file without getting the prompt while TestStand is open.

 

Any suggestions?  I attached my VI.

 

ReloadFromDisk Method

Syntax

UsersFile.ReloadFromDisk

Purpose

Reloads the users file from disk.

Remarks

Note  After reloading the user file, any references to the UsersFile.UserList property and other users will be out of date.

Brian
0 Kudos
Message 1 of 5
(5,413 Views)

Unfortunately you cannot suppress this in the Sequence Editor, to my knowledge.

 

It will not show up in the User Interfaces.  So you will be fine there.

 

Hope this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 5
(5,381 Views)

Thanks jigg.

 

I tried my data management utility with the LabVIEW full feature TestExec.exe UI that ships with TestStand.   I did not get a message prompt indicating TestStand had been externally modified.  However,  the usernames available for Login did not update until after I shut down the UI and reopen it.

 

 

Brian
0 Kudos
Message 3 of 5
(5,368 Views)

Was that after you called UsersFile.ReloadFromDisk?

 

I would expect you to be able to login as the new user if you call that.

 

In our front end callback any user in the plant can use their ID to log in.  If it's not in our users.ini file we dynamically add it.  It seems to update automatically because they are then logged in as themselves.  I think we use the IncCount and save file methods.

 

Regards,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 4 of 5
(5,366 Views)

Yes, Logins did not update after I called UsersFile.ReloadFromDisk.

Brian
0 Kudos
Message 5 of 5
(5,361 Views)