0
0
SCADA systemsdevops~30 mins

Compliance reporting in SCADA systems - Mini Project: Build & Apply

Choose your learning style9 modes available
Compliance Reporting in SCADA Systems
📖 Scenario: You work in a factory that uses a SCADA system to monitor machines. The factory must report compliance data about machine statuses every day to meet safety rules.This project helps you create a simple compliance report from machine data.
🎯 Goal: Build a small program that collects machine status data, sets a compliance threshold, filters machines that meet the threshold, and prints a compliance report.
📋 What You'll Learn
Create a dictionary with machine names and their status scores
Add a compliance threshold variable
Filter machines that meet or exceed the threshold
Print the list of compliant machines
💡 Why This Matters
🌍 Real World
Factories and industrial plants use SCADA systems to monitor machine health and ensure safety compliance. Automated reports help managers quickly see which machines meet safety standards.
💼 Career
Understanding how to process and report compliance data is important for roles in industrial automation, operations, and DevOps for manufacturing systems.
Progress0 / 4 steps
1
Create machine status data
Create a dictionary called machine_status with these exact entries: 'Pump1': 85, 'Valve2': 78, 'Conveyor3': 92, 'Sensor4': 70, 'Motor5': 88
SCADA systems
Need a hint?

Use curly braces to create a dictionary with the exact machine names and scores.

2
Set compliance threshold
Add a variable called threshold and set it to 80 to represent the minimum status score for compliance.
SCADA systems
Need a hint?

Just create a variable named threshold and assign it the value 80.

3
Filter compliant machines
Create a list called compliant_machines that contains the names of machines from machine_status whose status score is greater than or equal to threshold. Use a list comprehension with for machine, score in machine_status.items().
SCADA systems
Need a hint?

Use a list comprehension to check each machine's score against the threshold.

4
Print compliance report
Print the text "Compliant machines:" followed by the compliant_machines list on the next line using two separate print statements.
SCADA systems
Need a hint?

Use two print statements: one for the label and one for the list.