Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cabianch opened this issue Dec 2, 2016 · 4 comments
Labels
Codeathon Suitable for an EPICS Codeathon Project

Comments

@cabianch
Copy link

cabianch commented Dec 2, 2016

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

@cabianch cabianch changed the title Ehance iocStats to periodically write a message to the console as "chime" . Enhance iocStats to periodically write a message to the console as "chime" . Dec 2, 2016
@anjohnson
Copy link
Member

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

@anjohnson
Copy link
Member

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
Copy link
Author

cabianch commented Dec 5, 2016

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

@ralphlange
Copy link
Member

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".

@anjohnson anjohnson added the Codeathon Suitable for an EPICS Codeathon Project label Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Codeathon Suitable for an EPICS Codeathon Project
Projects
None yet
Development

No branches or pull requests

3 participants