Invite a Co-worker
Send a co-worker an invite to the Exchange portal.Just enter their email address and we’ll connect them to register. After joining, they will belong to the same company.
Send Invite Cancel
81005members
347242posts

Geo SCADA: Alarm Acknowledge Using Pick Action VBScript Function

PicardEarlGrey
Crewman
Crewman

Geo SCADA: Alarm Acknowledge Using Pick Action VBScript Function

Hi everyone!

 

I want to accept alarms from an alarm list using a VBScript function. I am not able to get the "cookie" value when selecting the row

 

'Assume for this purpose that strAlarmSource is fullname

 

     strAlarmSource = Mimic.Layers(strLayerName).Item(strListName).CurrentRowSource 

     objAlarm = Server.FindObject(strAlarmSource)

     objAlarm.Interface.Accept

 

and then when using the method "objAlarm.Interface.Accept" it would accept all active alarms on that object. Is there any way to select a row in an alarm list and get a reference to the Alarm Instance and not the object or "Alarm Source".

 

Thank you in advance!

1 Reply 1
BevanWeiss
Spock
Spock
0 Likes
0
235

Re: Geo SCADA: Alarm Acknowledge Using Pick Action VBScript Function

I think it's a little complicated there.

  strAlarmSource = Mimic.Layers(strLayerName).Item(strListName).CurrentRowSource

  objAlarm = Server.FindObject(strAlarmSource)

  objAlarm.Interface.Accept

 

The objAlarm item there is really the Alarm Object (CAlarmObject)

2022-05-26 14_25_44-GeoSCADA Expert 2021 Win2016 - VMware Workstation.png

 

And hence the Accept will 'Acknowledges all alarms associated with the object'

 

So somewhat painfully, you'd ideally want to access the CAlarm itself instead of the Alarm Object.


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..