Hello,
How can I generate an Alarm within a QAction? I used this documentation (https://docs.dataminer.services/develop/devguide/Connector/LogicQActionsExamples.html#creating-an-alarm-in-a-qaction), but I did not find the SLProtocolScripts.dll library.
Thanks in advance
Hi Maximiliano,
Would like to understand the use case for this approach a bit better. Could you maybe quickly describe why you want to create an alarm that way in code? The method you are linking to is only being used in very specific cases.
Typically alarms are being created by specifying in the alarm template that an alarm should be raised when the parameter has a value in a certain range. So I'm wondering if you cannot create a parameter in the connector that indicates if the alarm should be active or not?
If you want to generate an information event, you could use the following method: https://gist.github.com/TomW-Skyline/42522f8a35626ab13fe6359744cfa356.
To generate an information event you could indeed use that call. Here you can find an example method: https://gist.github.com/TomW-Skyline/42522f8a35626ab13fe6359744cfa356 .
I’ve found something similar, but where can I find this SLProtocolScripts.dll?
Next to the QAction in the xml there is a small arrow that opens a menu. I believe it can be added from there.
Opened a new answer to insert screenshots
https://community.dataminer.services/question/creating-an-alarm-in-a-qaction/answer/124164/
Hi Tom,
I just want to generate an information event to report the data processing flow within the protocol