0
0
SCADA systemsdevops~10 mins

Advanced analytics and predictive maintenance 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 start data collection from sensors.

SCADA systems
scada.start_data_collection([1])
Drag options to blanks, or click blank then click option'
Asensor_list
Bsensor_id
Cstart_time
Ddata_rate
Attempts:
3 left
💡 Hint
Common Mistakes
Using a single sensor ID instead of a list
Passing a time value instead of sensors
2fill in blank
medium

Complete the code to trigger predictive maintenance alert when threshold is exceeded.

SCADA systems
if sensor.reading > [1]:
    scada.trigger_alert('maintenance_required')
Drag options to blanks, or click blank then click option'
Asensor.min_value
Bsensor.max_value
Csensor.threshold
Dsensor.limit
Attempts:
3 left
💡 Hint
Common Mistakes
Using minimum value instead of threshold
Using max_value which may not be the alert limit
3fill in blank
hard

Fix the error in the code to correctly calculate the moving average of sensor data.

SCADA systems
moving_avg = sum(sensor.data[-[1]:]) / [1]
Drag options to blanks, or click blank then click option'
Asample_count
Bdata_length
Cinterval
Dwindow_size
Attempts:
3 left
💡 Hint
Common Mistakes
Using different variables for slicing and division
Using total data length instead of window size
4fill in blank
hard

Fill both blanks to filter sensor data for anomalies above a threshold.

SCADA systems
anomalies = [d for d in sensor.data if d [1] [2]]
Drag options to blanks, or click blank then click option'
A>
Bsensor.threshold
C<
Dsensor.min_limit
Attempts:
3 left
💡 Hint
Common Mistakes
Using less than operator
Comparing to minimum limit instead of threshold
5fill in blank
hard

Fill all three blanks to create a dictionary of sensor IDs and their average readings above threshold.

SCADA systems
avg_readings = {sensor.[1]: sum(readings) / len(readings) for sensor, readings in data.items() if sum(readings) / len(readings) [2] [3]
Drag options to blanks, or click blank then click option'
Aid
B>
Csensor.threshold
Dname
Attempts:
3 left
💡 Hint
Common Mistakes
Using sensor name instead of ID
Using less than operator
Comparing to wrong threshold value