epics-modules / iocStats

EPICS IOC Status and Control
Other
12 stars 40 forks source link

Enhance iocStats to periodically write a message to the console as "chime" . #17

Open cabianch opened 7 years ago

cabianch commented 7 years ago

Add a chime function to iocStats which logs a timestamp to the IOC's screenlog at a configurable interval.

anjohnson commented 7 years ago

I wrote code for the APS to implements this which I can donate, it's even called consoleChime...

anjohnson commented 7 years ago

I'm not sure exactly how or where these should be included or I would have done it myself and issued a pull request. Instead I'll attach the files here for someone who better understands the current iocStats "house style" to integrate them.

Some DBD file:

registrar(consoleChimeRegister)

consoleChime.db:

record(sub, "$(IOCNAME):consoleChime") {
        field(DESC, "Print time on IOC console")
        field(INAM, "consoleChimeInit")
        field(SNAM, "consoleChime")
        field(SCAN, "10 second")
        field(PRIO, "LOW")
}

os/default/consoleChime.c os/vxWorks/consoleChime.c

cabianch commented 7 years ago

Thank you Andrew, I am planning to accomplish this integration. Carolina

ralphlange commented 7 years ago

Hi Carolina, You're at SLAC, right? Then Steph Allison would of course be your first contact. If she is not available - I have been working on iocStats and can answer questions and help with its "house style".