[Intouch] How to check whether an alarm from priority 1 apears

Karolewsky

Member
Join Date
Jan 2012
Location
Poland
Posts
7
Hi All,
I have to make a beep sound when an alarm from priority 1 appears. I will use Playsound() function, but I face the problem of how to get the information whether any alarm from priority 1 appears. Do You know how could I get that information in Intouch. I use Intouch 10.1. Thanks in advance

Best regards
Karol
 
Yes, this is an old post but I was looking for precisely this earlier today and finding the solution took a while.

Create the below QuickFunction, call it from the 'WhileShowing' window script of the alarmViewerBar window and test the return value to call Playsound():

DIM HighPriorityAlm AS DISCRETE;
DIM NumOfAlms AS INTEGER;

NumOfAlms = #AlarmViewerBar.UnackAlarms;

IF NumOfAlms > 0 THEN
DIM Index AS INTEGER;
DIM NewAlmPriority AS MESSAGE;

FOR Index = 0 TO NumOfAlms
NewAlmPriority = #AlarmViewerBar.GetItem(Index, "Priority");

IF NewAlmPriority == "1" THEN
HighPriorityAlm = 1;
EXIT FOR;
ENDIF;
NEXT;
ENDIF;

RETURN HighPriorityAlm;
 
Last edited:

Similar Topics

Hey guys, I'm trying to write a script that auto-restarts Win-911 if it crashes. I've gotten that to work, but the problem is that my client has...
Replies
3
Views
3,371
Hi all, I'm trying to check the health of the main and failover servers in a Terminal Services Intouch installation. There are 2 servers, each...
Replies
0
Views
1,931
Hey all. Ive got a screen where an operator is going to scan in with a bar code reader 140 serials. They click the position a serial goes in (it...
Replies
13
Views
5,192
Hi all. Customer wants analog faceplates really bad, even if we explained that it doesn't make much sense in his process. What he wants to see...
Replies
5
Views
106
Trying to export a Modern application for an upgrade to Intouch 2020 but I cannot export the application from the 2014 version because the export...
Replies
2
Views
103
Back
Top Bottom