Factory Talk View Site Edition Auto logout after 20 mins of adle time

mahone

Member
Join Date
Apr 2014
Location
Singapore
Posts
62
Hi All!

I'm running a Factory Talk View Site Edition client on a Windows 7 based industrial PC. I have 3 run time users, View Only, Operator and Engineer. I want to implement a function to automatically log out the current user after 20 minutes of inactivity and auto log in view only user.

how can i detect the idle time and implement this functionality in factory talk view studio?

Please advise

Thanks in advance
 
In Runtime (Client) wizard on the last screen you can configure that time.

logout_inactivity.png
 
Last edited:
Hi Suseh,

I appreciate your reply.

i tried that but it will log the user out completely from HMI graphics. The HMI graphics disappear after log out.

the requirement is to only log the current user out and keep the hmi running
 
i tried to call a macro that login the view only user when the HMI attempt to logout the current user but i can't get it done
 
I went down this path last year. You will have to use VBA to get the idle time of the PC, and then log in the default user.

Here's what I used. It may not be complete (because it was a while ago that I did it and I can't remember where all of the code is ;) ) but it should at least get you heading the right way

Code:
Private Sub AutoLogoutTags_Change(ByVal TagNames As IGOMStringList)
'This sub will execute every minute when the system minute changes
On Error GoTo errHandler

If Application.CurrentUserName Like "*DEFAULT" Then Exit Sub 'If already logged out to default (view only) user, do not auto log out
If Application.CurrentUserName Like "*SCADA" Then Exit Sub 'Do not auto logout SCADAEngineer logins

IdleTime = GetIdleTime() 'Check idle time
If IdleTime > IdleLogoutTime Then
    Application.Login "default", "Scadaview0nly" 'If idle time exceeds logout idle time, login default user
End If

Exit Sub

errHandler:
    LogDiagnosticsMessage "VBA Error in AutoLogoutTags_Change():  " & Hex(Err.Number) & " - " & Err.Description, ftDiagSeverityError

End Sub

'Determine client idle time
Private Function GetIdleTime()
    Dim LastInput As LastInputInfo
    With LastInput
        .cbSize = Len(LastInput)
        Call GetLastInputInfo(LastInput)
        GetIdleTime = (GetTickCount() - .dwTime) / 60000
    End With
End Function
 
You'll have to find some way of calling the subs regularly, as VBA is event driven rather than cyclic. I used the "minutes" tag on the server - every time it changes, I run the subs to check the idle time and determine whether to log in the default user or not
 
I searched for it in product compatibility & download centre. Was unable to locate the installer. Should i still look for it there or contact Rockewell?
 
Follow following steps.

Go TO PROJECT SETTING >> CLICK ON RUN TIME >> CLICK ON ENABLE AUTO LOG OUT >> SELECT TIME IN INACTIVE PERIOD (IN YOUR CASE IT IS GOING TO BE 20 MINUTE SO TYPE 20) >> CLICK ON RETURN TO GRAPHICS ON LOG OUT >>
561e9cfb


HELP.jpg
 
Follow following steps.

Go TO PROJECT SETTING >> CLICK ON RUN TIME >> CLICK ON ENABLE AUTO LOG OUT >> SELECT TIME IN INACTIVE PERIOD (IN YOUR CASE IT IS GOING TO BE 20 MINUTE SO TYPE 20) >> CLICK ON RETURN TO GRAPHICS ON LOG OUT >>
561e9cfb

That is for FTView ME, not FTView SE. i.e., that example is for a project developed for a PanelView Plus, rather than the OP's distributed SCADA application. They work in quite different ways, particularly in the login/logout regard.
 

Similar Topics

Hi all, Attached below is an example of what is happening to our existing SCADA. It seems after patching some Rockwell Software that I thought...
Replies
9
Views
263
The client has an application that when communication between the PLC and the Factory Talk VIEW supervisory fails, the object in the supervisory...
Replies
5
Views
226
Hello all, I am looking for a way to have a user get logged out after an X amount of time because to default so that user privilages are no...
Replies
4
Views
507
Hello everybody. I was wondering if there is a way in FTVIEW Studio to close ) view after x min without interaction . My issue is the following...
Replies
2
Views
330
Is there a way to choose the base font in ME. Text in the Arial Unicode MS which is the default font on my FTVS doesnt show up properly on a...
Replies
1
Views
620
Back
Top Bottom