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

Help on setting up alarm on virtual device #478

Open
khalaniaiyaj opened this issue Jan 18, 2023 · 2 comments
Open

Help on setting up alarm on virtual device #478

khalaniaiyaj opened this issue Jan 18, 2023 · 2 comments

Comments

@khalaniaiyaj
Copy link

Is there any way or example using which we can setup alarm on specific object for virtual device and subscribe to it in YABE?

@JoelBender
Copy link
Owner

I'm not sure about the YABE subscription part, but I'll keep this issue open for an additional sample application. Do you have a specific object type in mind?

@khalaniaiyaj
Copy link
Author

khalaniaiyaj commented Feb 2, 2023

Hi @JoelBender

so basically i have create following sample object

test_ai = SampleAnalogValueObject(
objectIdentifier=("analogInput", 1),
objectName="ai",
presentValue=0.0,
covIncrement=0.5,
eventDetectionEnable=True,
eventEnable=[1, 1, 1],
ackedTransitions=[1, 1, 1],
notifyType=0,
reliability=1,
outOfService=False,
eventState="normal",
statusFlags=StatusFlags(),
units=19,
)

I am able to subscribe to the object from Yabe explore and able to monitor the changes and based on the new value, i am able to change the eventState and statusFlags. But wanted to know if we change the status to ALARM, how can we implement AlarmSummaryRequest in our device so that we can share the summary of the alarm to client?

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

No branches or pull requests

2 participants