0
0
SCADA systemsdevops~30 mins

Alarm priority levels in SCADA systems - Mini Project: Build & Apply

Choose your learning style9 modes available
Alarm priority levels
📖 Scenario: You are working with a SCADA system that monitors various sensors in a factory. Each alarm has a priority level that helps operators decide which alarms to address first.
🎯 Goal: Build a simple program that stores alarms with their priority levels, sets a threshold priority, filters alarms above that threshold, and displays them.
📋 What You'll Learn
Create a dictionary called alarms with exact alarm names and their priority levels
Create a variable called priority_threshold with an integer value
Use a dictionary comprehension to create a new dictionary high_priority_alarms with alarms having priority greater than priority_threshold
Print the high_priority_alarms dictionary
💡 Why This Matters
🌍 Real World
In SCADA systems, alarms with different priority levels help operators focus on the most critical issues first.
💼 Career
Understanding how to filter and manage alarm priorities is important for roles in industrial automation and system monitoring.
Progress0 / 4 steps
1
Create the alarms dictionary
Create a dictionary called alarms with these exact entries: 'Pump Failure': 5, 'Overheat': 8, 'Power Loss': 9, 'Low Pressure': 3, 'Sensor Fault': 4
SCADA systems
Need a hint?

Use curly braces {} to create a dictionary with keys and values separated by colons.

2
Set the priority threshold
Create a variable called priority_threshold and set it to the integer 5
SCADA systems
Need a hint?

Use a simple assignment to create the variable priority_threshold.

3
Filter high priority alarms
Use a dictionary comprehension to create a new dictionary called high_priority_alarms that includes only alarms from alarms with priority greater than priority_threshold
SCADA systems
Need a hint?

Use {key: value for key, value in dict.items() if condition} to filter the dictionary.

4
Display the high priority alarms
Write a print statement to display the high_priority_alarms dictionary
SCADA systems
Need a hint?

Use print(high_priority_alarms) to show the filtered alarms.