Skip navigation
All Places > Learn PI > Building Displays with PI ProcessBook Discussion Forum > Blog

Have you ever wanted to display a timer (elapsed seconds) in the form of hh:mm:ss?

Here is a nifty PE or Data Set Calculation that uses an integer tag (I just used Sinusoid for the example) to convert the tag value to HH:MM:SS

CONCAT(Format((('sinusoid' / 3600)),"%2.2d","I"),":",Format(((('sinusoid'  MOD  3600)/60)),"%2.2d","I"),":",Format((((('sinusoid'  MOD  3600) MOD 60))),"%2.2d","I"))

Input tag = 10256 results in display of 02:50:56


Filter Blog

By date: