Okay...
Is it that you do not know how to create a String Data File (ST)?
...or...
Is it that there is one already existing and you just do not know how to enter the string data?
If you currently do not have a String Data File you can use then it might be best to create one just for this feature...
Right-click Data Files>New...
The "Create Data File" window should be open...
The "File" number should default to the next available file number after the highest existing Data File number. In my example this was file number "10". You can change it to any available number but just leave it at whatever it is if you do not have any preference...
Change Type to "String"...
Give it a suitable "Name", such as "CURR_USER"...
A description "Desc" is optional...something like..."Object Visibility - Which User is logged in?"...
Set the number of "Elements" to "4". This will give you four String addresses...
"OK" that and you should then see a new Data File created at the bottom of the Data Files list...
Example:
Data File:
ST10 - CURR_USER ("10" = file number; yours may be different)
Double-click your new String Data File to open it...
You should now see the four elements or String addresses...
Example:
ST10:0 (you do not enter any predefined string here; the PVc will write the Current User to this address)
ST10:1 (use for "Admin")
ST10:2 (use for "Maintenance")
ST10:3 (use for "User")
To enter the predefined User strings...
Double-click on "String Text" for each of the 3 predefined elements and enter your User strings...
ST10:1 = "Admin"
ST10:2 = "Maintenance"
ST10:3 = "User"
The "LEN" column is the length of the string in characters and is automatically generated as you type in the string...
You can optionally add a Description for each element as well...
Example Descriptions:
ST10:0 "PVc Current User"
ST10:1 "Predefined User "Admin"
ST10:2 "Predefined User "Maintenance"
ST10:3 "Predefined User "User"
...and that should be that.
If you are still not sure on any of that or need assistance with some of the logic, then shoot.
Regards,
George