0
0
SCADA systemsdevops~10 mins

Real-time data display 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 the real-time data stream.

SCADA systems
scada.start_stream([1])
Drag options to blanks, or click blank then click option'
Adata_source
Bsensor_list
Cstream_id
Dupdate_rate
Attempts:
3 left
💡 Hint
Common Mistakes
Using sensor_list instead of stream_id
Passing update_rate as the first argument
2fill in blank
medium

Complete the code to display the latest data value on the dashboard.

SCADA systems
dashboard.show_value([1])
Drag options to blanks, or click blank then click option'
Alatest_value
Bstream_status
Cdata_packet
Dsensor_data
Attempts:
3 left
💡 Hint
Common Mistakes
Passing the whole sensor_data object instead of just the value
Using stream_status which is not a data value
3fill in blank
hard

Fix the error in the code to update the display only if new data is received.

SCADA systems
if data.timestamp [1] last_update:
    dashboard.update(data.value)
Drag options to blanks, or click blank then click option'
A>
B<
C==
D<=
Attempts:
3 left
💡 Hint
Common Mistakes
Using == which updates only if timestamps are equal
Using < which updates on older data
4fill in blank
hard

Fill both blanks to filter and display sensor data above a threshold.

SCADA systems
filtered_data = [d for d in data_stream if d.value [1] threshold]
dashboard.display([2])
Drag options to blanks, or click blank then click option'
A>
Bfiltered_data
C<
Ddata_stream
Attempts:
3 left
💡 Hint
Common Mistakes
Using < which filters below threshold
Displaying the original data_stream instead of filtered_data
5fill in blank
hard

Fill all three blanks to create a dictionary of sensor names and their latest values above zero.

SCADA systems
sensor_values = [1]: [2] for [3] in sensors if sensors[[3]] > 0
Drag options to blanks, or click blank then click option'
Aname
Bvalue
Csensor
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up keys and values
Using incorrect variable names