0
0
SCADA systemsdevops~10 mins

Master station and HMI 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 define the main function of a Master Station in SCADA.

SCADA systems
def master_station():
    # The Master Station collects data and sends commands to remote units
    [1]
Drag options to blanks, or click blank then click option'
Alog_errors()
Bsend_alerts()
Cdisplay_graphics()
Dcollect_data()
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing display or logging functions instead of data collection.
2fill in blank
medium

Complete the code to show how the HMI displays data received from the Master Station.

SCADA systems
def hmi_display(data):
    # Display the received data on the screen
    [1](data)
Drag options to blanks, or click blank then click option'
Arender_screen
Bsend_command
Cprocess_data
Dlog_data
Attempts:
3 left
💡 Hint
Common Mistakes
Using functions that send commands or log data instead of displaying.
3fill in blank
hard

Fix the error in the code that sends a command from the Master Station to a remote unit.

SCADA systems
def send_command_to_remote(command):
    # Send command to remote unit
    remote_unit.[1](command)
Drag options to blanks, or click blank then click option'
Areceive
Bsend
Cexecute
Dsend_command
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'receive' which is for incoming data, not sending.
4fill in blank
hard

Fill both blanks to create a dictionary comprehension that maps device IDs to their status if the status is 'active'.

SCADA systems
active_devices = {device_id: status for device_id, status in devices.items() if status [1] [2]
Drag options to blanks, or click blank then click option'
A==
B!=
C'active'
D'inactive'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '!=' or wrong status string causing wrong filtering.
5fill in blank
hard

Fill all three blanks to create a dictionary comprehension that maps uppercase device IDs to their status if the status is not 'inactive'.

SCADA systems
filtered_devices = { [1]: [2] for device_id, [3] in devices.items() if [3] [4] 'inactive'}
Drag options to blanks, or click blank then click option'
Adevice_id.upper()
Bstatus
C!=
Ddevice_id
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing variable names or using wrong comparison operators.