Generation working and Compilation of MARTe components

This commit is contained in:
ferrog
2025-05-13 16:03:11 +00:00
parent 3a5e378d99
commit 4faee3802a
1571 changed files with 611466 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
from org.csstudio.opibuilder.scriptUtil import PVUtil
from org.csstudio.opibuilder.scriptUtil import ColorFontUtil
import datetime
pv = pvs[0]
s = PVUtil.getTimeInMilliseconds(pv)
t = datetime.datetime.fromtimestamp(float(s)/1000.)
format = "%H:%M:%S"
widget.setPropertyValue("on_label", t.strftime(format))
widget.setPropertyValue("off_label", t.strftime(format))