0
0
SCADA systemsdevops~10 mins

Distributed SCADA architecture 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 component that collects data from remote units in a distributed SCADA system.

SCADA systems
class [1]:
    def __init__(self):
        self.data = []

    def collect_data(self, remote_unit):
        self.data.append(remote_unit.send_data())
Drag options to blanks, or click blank then click option'
AControlPanel
BRemoteUnit
CMasterStation
DSensorNode
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing a remote unit instead of the central collector.
2fill in blank
medium

Complete the code to send data from a remote unit to the master station.

SCADA systems
class RemoteUnit:
    def __init__(self, id):
        self.id = id

    def [1](self):
        return f"Data from unit {self.id}"
Drag options to blanks, or click blank then click option'
Asend_data
Breceive_data
Cprocess_data
Dstore_data
Attempts:
3 left
💡 Hint
Common Mistakes
Using receive_data which is for incoming data.
3fill in blank
hard

Fix the error in the code that initializes communication between master and remote units.

SCADA systems
master = MasterStation()
remote = RemoteUnit(1)
master.collect_data([1])
Drag options to blanks, or click blank then click option'
Aremote.receive_data()
Bremote
Cremote.send_data()
Dremote.data
Attempts:
3 left
💡 Hint
Common Mistakes
Passing remote.send_data() which sends data prematurely.
4fill in blank
hard

Fill both blanks to create a dictionary of remote unit IDs and their data in the master station.

SCADA systems
data_summary = {unit.id: unit.[1]() for unit in remote_units if unit.[2]() is not None}
Drag options to blanks, or click blank then click option'
Asend_data
Creceive_data
Dprocess_data
Attempts:
3 left
💡 Hint
Common Mistakes
Using receive_data which is incorrect for remote units.
5fill in blank
hard

Fill all three blanks to implement a control command sent from the master to a remote unit and confirm execution.

SCADA systems
class MasterStation:
    def send_command(self, unit, command):
        response = unit.[1](command)
        if response == [2]:
            print(f"Command [3] executed successfully on unit {unit.id}")
Drag options to blanks, or click blank then click option'
Aexecute_command
BTrue
Ccommand
Dsend_data
Attempts:
3 left
💡 Hint
Common Mistakes
Using send_data instead of execute_command.