07-22-2014 01:35 PM
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. |
07-23-2014 04:35 PM
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,
07-24-2014 08:15 AM
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.
07-24-2014 08:20 AM
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,
07-24-2014 08:41 AM
Yes, Logins did not update after I called UsersFile.ReloadFromDisk.