Does anyone know how to make a digital clock in PI Processbook ?
You can create a calculated tag with point type "TimeStamp" to be serviced by PI Performance Equation Scheduler (point source "C") and show the tags value in a ProcessBook value symbol. Because ProcessBook by default updates each 5 seconds, a 5 second scan class should be sufficient. The equation is '*' refers now. To make the whole thing look more fancy you may search the internet for something like "Windows digital clock font".
If you hop over to How to use a timer in VBA ProcessBook? (i.e. Animation or recurring update ... ) , Patrice Thivierge has written a nice simple timer class for Processbook, open up his example and modify to suit your needs. I added some text into the page, called it myTime, and in the ExecuteAnimation1() sub you just need ThisDisplay.MyTime = Time then in the DIsplay Load event add StartAnimation
With VBA (and a text box named "Text1"):
Private Sub Display_DataUpdate()
ThisDisplay.Text1.Contents = VBA.Time
Did one of the answers above help you with your question?
I'll mark this thread as assumed answered, but feel free to mark a specific reply as an answer.
Do not hesitate to post here again if you need further help.
Retrieving data ...