Complete the code to define the main screen title in the HMI configuration.
screen_title = "[1]"
The main screen title should clearly indicate the operator's dashboard for easy recognition.
Complete the code to set the color for warning messages in the HMI.
warning_color = "[1]"
Yellow is commonly used for warnings to catch attention without indicating immediate danger.
Fix the error in the HMI alarm configuration code by completing the missing keyword.
if alarm_status == "active": display_[1](alarm_message)
The function to show an alarm message should be 'display_alert' to notify the operator immediately.
Fill both blanks to create a filter that shows only critical alarms with high priority.
filtered_alarms = [alarm for alarm in alarms if alarm.[1] == 'critical' and alarm.[2] > 7]
Alarms are filtered by 'level' for critical status and 'priority' greater than 7 for high importance.
Fill all three blanks to create a dictionary comprehension that maps sensor names to their values only if the sensor is active and value is above threshold.
active_sensors = {sensor.[1]: sensor.[2] for sensor in sensors if sensor.[3] == True and sensor.value > threshold}The dictionary keys are sensor names, values are sensor readings, filtered by active sensors.