0
0
SCADA systemsdevops~10 mins

Alarm acknowledgment workflow in SCADA systems - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to acknowledge an alarm by setting its status to acknowledged.

SCADA systems
alarm.status = '[1]'
Drag options to blanks, or click blank then click option'
Aacknowledged
Bactive
Ccleared
Dpending
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'active' instead of 'acknowledged' keeps the alarm unacknowledged.
2fill in blank
medium

Complete the code to check if an alarm is acknowledged before clearing it.

SCADA systems
if alarm.status == '[1]':
    clear_alarm(alarm)
Drag options to blanks, or click blank then click option'
Aactive
Bpending
Cacknowledged
Dcleared
Attempts:
3 left
💡 Hint
Common Mistakes
Checking for 'active' status allows clearing unacknowledged alarms.
3fill in blank
hard

Fix the error in the code to update the alarm acknowledgment timestamp correctly.

SCADA systems
alarm.ack_time = datetime.[1]()
Drag options to blanks, or click blank then click option'
Atoday
Bnow
Cutcnow
Dtime
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'utcnow' records UTC time which may confuse local operators.
4fill in blank
hard

Fill both blanks to create a function that acknowledges an alarm and logs the action.

SCADA systems
def acknowledge_alarm(alarm):
    alarm.status = '[1]'
    alarm.ack_time = datetime.[2]()
    log_action('Alarm acknowledged')
Drag options to blanks, or click blank then click option'
Aacknowledged
Bactive
Cnow
Dutcnow
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'active' status or 'utcnow' time causes incorrect acknowledgment.
5fill in blank
hard

Fill all three blanks to filter alarms that are active and not yet acknowledged.

SCADA systems
unack_alarms = [alarm for alarm in alarms if alarm.status == '[1]' and not alarm.[2] and alarm.priority [3] 3]
Drag options to blanks, or click blank then click option'
Aactive
Backnowledged
C<=
Dcleared
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'cleared' status or wrong priority comparison leads to wrong filtering.