Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to send a setpoint change command to the SCADA system.
SCADA systems
scada.set_setpoint([1]) Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using temperature_value instead of setpoint_value.
✗ Incorrect
The correct variable to send as a setpoint change is setpoint_value.
2fill in blank
mediumComplete the code to check if the SCADA system acknowledged the setpoint change.
SCADA systems
if scada.acknowledge() == [1]:
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Checking for False instead of True.
✗ Incorrect
The acknowledge() method returns True if the setpoint change was accepted.
3fill in blank
hardFix the error in the code that sends the setpoint change with the correct method.
SCADA systems
scada.[1]_setpoint(setpoint_value) Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'send_setpoint' instead of 'set_setpoint'.
✗ Incorrect
The correct method to send a setpoint change is set_setpoint().
4fill in blank
hardFill both blanks to create a dictionary with the setpoint and its status.
SCADA systems
status_report = {'setpoint': [1], 'status': [2] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'pending' instead of 'active' for status.
✗ Incorrect
The dictionary should have the setpoint value and the status as 'active'.
5fill in blank
hardFill all three blanks to log the setpoint change with timestamp and user.
SCADA systems
log_entry = {'time': [1], 'user': [2], 'setpoint': [3] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using datetime.now() instead of time.time() for timestamp.
✗ Incorrect
Use time.time() for timestamp, the user name as a string, and the setpoint value variable.