Hello,
When i use;
Dim gUserId as String
Dim gUserName as String
Dim gGroupName as String
system.fixgetuserinfo gUserId,gUserName,gGroupName
gUserName returns blank, any ideas?
Giovanni the parameter path for the workstation user currently logged in to DeltaV is DVSYS.THISUSER/USERNAME.A_CV....the frsReadValue function will return the value for use in a script:
gUserName = frsReadValue("DVSYS.THISUSER/USERNAME.A_CV")
Note that what DeltaV considers the "username" is the probably what you & I would call the userID, it's the account name you specify when you log in to DeltaV. So this may not be exactly what you want, but maybe this will at least get you pointed in the right direction.
Emerson does a pretty good job of hiding the information on THISUSER and the DeltaV Operate frs functions:
For info on THISUSER workstation parameters:
From DeltaV Operate in "configure" mode, select
>Help
>DeltaV Operate Picture Help, then click the Find tab, and search for "thisuser".
For info on frs functions:
From the DeltaV Operate VB editor, select
>iFix Automation Help, then click the Find tab and do a search on "frs". Read up on the frsReadValue function, it has some optional fields that are useful.
Hope this helps you out some.
thanks
pat g.
In reply to Pat Grider:
thanks pat
I'm familiar with frs functions but i would also need to use fixlogon and other methods.
I'm not convinced that the correct library is being referenced.
G