0
0
SCADA systemsdevops~10 mins

Trend charts and historical data 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 recording data points for trend charts.

SCADA systems
scada.start_trend_recording([1])
Drag options to blanks, or click blank then click option'
Asensor_id
Bstart_time
Cdata_rate
Dchart_type
Attempts:
3 left
💡 Hint
Common Mistakes
Using start_time instead of sensor_id causes errors.
2fill in blank
medium

Complete the code to fetch historical data for a given time range.

SCADA systems
history = scada.get_historical_data(sensor_id, [1])
Drag options to blanks, or click blank then click option'
Aend_time
Bstart_time
Cdata_format
Dinterval
Attempts:
3 left
💡 Hint
Common Mistakes
Using end_time alone without start_time causes incomplete data.
3fill in blank
hard

Fix the error in the code to correctly plot the trend chart.

SCADA systems
scada.plot_trend_chart(data, [1]='time', y_axis='value')
Drag options to blanks, or click blank then click option'
Axaxis_data
Bxaxis
Cxaxis_label
Dx_axis
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect parameter names causes the chart not to display.
4fill in blank
hard

Fill both blanks to filter historical data by sensor and time range.

SCADA systems
filtered_data = scada.filter_data([1], [2])
Drag options to blanks, or click blank then click option'
Asensor_id
Bstart_time
Cend_time
Ddata_type
Attempts:
3 left
💡 Hint
Common Mistakes
Using data_type instead of time causes wrong filtering.
5fill in blank
hard

Fill all three blanks to create a summary of trend data with conditions.

SCADA systems
summary = { [3]['[1]']: [3]['[2]'] for [3] in data if [3]['[2]'] > threshold }
Drag options to blanks, or click blank then click option'
Atimestamp
Bvalue
Ditem
Attempts:
3 left
💡 Hint
Common Mistakes
Using the same variable name for key and loop causes errors.