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

Subscribers to alarm state updates are not notified #13

Closed
GoogleCodeExporter opened this issue Mar 14, 2015 · 2 comments
Closed

Subscribers to alarm state updates are not notified #13

GoogleCodeExporter opened this issue Mar 14, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

1. Run example/alarm_severity.py.
2. Create an alarm subscriber by running "camonitor -m a MTEST:STATUS".
3. Put the MTEST:STATUS PV into an alarm state with "caput MTEST:STATUS ERROR" 
(this causes the alarm state to be STATE_ALARM and the severity to be 
MAJOR_ALARM).

What is the expected output?

The camonitor process should output the following:

MTEST:STATUS                   2015-01-29 06:47:50.170841 ERROR STATE MAJOR

What do you see instead?

Nothing - the subscriber does not get a notification that the PV is alarming.

What version of the product are you using? On what operating system?

pcaspy v0.5.1 on Mac OS X 10.9 and CentOS release 5.10.

Please provide any additional information below.

This relates to the ca_create_subscription function in libca 
[http://www.aps.anl.gov/epics/base/R3-14/12-docs/CAref.html#ca_add_event]. 
Clients can elect to receive only alarm state changes using the DBE_ALARM mask. 
pcaspy doesn't trigger these events for some reason.

Original issue reported on code.google.com by robbie.c...@gmail.com on 28 Jan 2015 at 8:56

@GoogleCodeExporter
Copy link
Author

Currently it only post DBE_VALUE | DBE_LOG. Since alarm/status change is always 
accompanied by a value change, this is never noticed.
Thanks for reporting. I will look for a fix.

Original comment by xiaoqian...@gmail.com on 29 Jan 2015 at 3:01

  • Changed state: Accepted

@xiaoqiangwang
Copy link
Collaborator

Fix in 0.6.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants