INACTIVITY command(new programmer)
jackygross
Posts: 10
I'm a new programmer, and I'm trying to shut down the system if there's innactivity for X amount of time...
Can someone help ?
I've looked at TIMELINE but i think it's more advanced for me.
Does anyone have any example to share ?
Thanks
Can someone help ?
I've looked at TIMELINE but i think it's more advanced for me.
Does anyone have any example to share ?
Thanks
0
Comments
If you do this:
It will start a timer after every button push from the TP's that are a part of the array vdvTP. The timer is for an hour, which can be adjusted (you probably want to make it longer then that). Every time a button is pushed it kills the existing timer and starts a new one.
fnShutDownSystem is what ever routine you have for shutting down the system.
is vdvTP,0 for every panel in the system, and for every button ?
Do i define vdvTP in define device?
vdvTP in this application is an arrary of touchpanels. It is defined here in DEFINE_VARIABLE.
you might have something like this
now the event "BUTTON_EVENT[vdvTP,0]" will capture every button press mapped to your touchpanel device on 10001 ports 1,2 and 3