Index: shared/scripts/names.py =================================================================== diff -u -r4aea809c4c3eaaeb674f79f550aff589e61d6739 -rf32e3b65bfcf747b049f76b3b5d2384ab37f4c4b --- shared/scripts/names.py (.../names.py) (revision 4aea809c4c3eaaeb674f79f550aff589e61d6739) +++ shared/scripts/names.py (.../names.py) (revision f32e3b65bfcf747b049f76b3b5d2384ab37f4c4b) @@ -12,6 +12,7 @@ # author Behrouz NematiPour # + DIALIN_LINK = False AUT_NAME = "denaliSquish" # Squish @@ -94,7 +95,7 @@ o_qquickview_alarm = {"type": "QQuickView", "unnamed": 1, "visible": True} o_alarm_dialog = {"container": o_Overlay, "id": "_backgroundRect", "type": "Rectangle", "unnamed": 1, "visible": True} o_okay_alarm = {"container": o_Overlay, "id": "_okay", "type": "TouchRect", "unnamed": 1, "visible": True} -o_alarm_bar = {"container": o_qquickview_alarm, "objectName": "NotificationBar", "type": "NotificationBar", "visible": True} +o_alarm_bar = {"container": o_qquickview_alarm, "objectName": "NotificationBar", "type": "NotificationBar"} o_treatmentStart_SalineTouchArea_TreatmentFluid = {"container": o_treatmentStart_TreatmentStart, "id": "_SalineTouchArea", "type": "TreatmentFluid", "unnamed": 1, "visible": True} o_treatmentStart_heparinTouchArea_TreatmentFluid = {"container": o_treatmentStart_TreatmentStart, "id": "_heparinTouchArea", "type": "TreatmentFluid", "unnamed": 1, "visible": True} o_dismiss_alarm = {"container": o_Overlay, "id": "_dismiss", "type": "TouchRect", "unnamed": 1, "visible": True} @@ -236,8 +237,85 @@ o_settingsHome_PressureOcclusionData_DialysateInletPumpOcclusion = {"container": o_settingsHome, "objectName": "_PressureOcclusionData3", "type": "Text"} o_settingsHome_PressureOcclusionData_DialysateOutletPumpOcclusion = {"container": o_settingsHome, "objectName": "_PressureOcclusionData4", "type": "Text"} +# OutletFlowData +o_settingsHome_OutletFlowData_RefUFVol = {"container": o_settingsHome, "objectName": "_OutletFlowData0", "type": "Text"} +o_settingsHome_OutletFlowData_MeasUFVol = {"container": o_settingsHome, "objectName": "_OutletFlowData1", "type": "Text"} +o_settingsHome_OutletFlowData_RotorSpeed = {"container": o_settingsHome, "objectName": "_OutletFlowData2", "type": "Text"} +o_settingsHome_OutletFlowData_MotorSpeed = {"container": o_settingsHome, "objectName": "_OutletFlowData3", "type": "Text"} +o_settingsHome_OutletFlowData_MotorCtlSpeed = {"container": o_settingsHome, "objectName": "_OutletFlowData4", "type": "Text"} +o_settingsHome_OutletFlowData_MotorCtlCurrent = {"container": o_settingsHome, "objectName": "_OutletFlowData5", "type": "Text"} +o_settingsHome_OutletFlowData_PWMDtCycle = {"container": o_settingsHome, "objectName": "_OutletFlowData6", "type": "Text"} + # Setting CANBusFaultCountText -o_settingsHome_canbusFaultCount = {"container": o_settingsHome, "id": "_canbusFaultCountText", "type": "Text" } -blood_sitting_too_long_alarm_5_min_Text = {"container": o_Overlay, "text": "Blood sitting too long alarm (>5 min). ", "type": "Text", "unnamed": 1, "visible": True} +o_settingsHome_canbusFaultCount = {"container": o_settingsHome, "id": "_canbusFaultCountText", "type": "Text" } +# Alarm System +o_NotificationDialog_Description_Text = {"container": o_Overlay, "objectName": "_NotificationDialog_Description", "type": "Text"} +o_NotificationDialog_OKAY = {"container": o_Overlay, "text": "OKAY", "type": "Text"} +AlarmPriory = [ 0, 1, 2, 3, 4 ] # 4 is out of range check + +AlarmTextMap = [ + "", + "Software Error.", + "Indication for when no alarms is a possible situation.", + "FPGA POST failure.", + "Watchdog POST failure.", + "UI communication POST failure.", + "Blood pump failed motor controller current check.", + "Blood pump failed motor off check. \nMeasured speed while commanded off.", + "Blood pump failed motor controller direction check.", + "Blood pump failed rotor speed check.", + "Dialysis inlet pump failed motor controller current check.", + "Dialysis inlet pump failed motor off check. \nMeasured speed while commanded off.", + "Dialysis inlet pump failed motor controller direction check.", + "Dialysis inlet pump failed rotor speed check.", + "Dialysis outlet pump failed motor controller current check.", + "Dialysis outlet pump failed motor off check. \nMeasured speed while commanded off.", + "Dialysis outlet pump failed motor controller direction check.", + "Dialysis outlet pump failed rotor speed check.", + "Watchdog expired error.", + "Real-time clock communication error.", + "Real-time clock configuration error.", + "Dialysate generator communication timeout.", + "User interface communication timeout.", + "Too many bad CRCs detected on received system messages.", + "Treatment stopped by user action - pressed stop button.", + "Blood sitting too long warning (>4 min).", + "Blood sitting too long alarm (>5 min).", + "Blood sitting too long alarm (>10 min).", + "System message needing acknowledgment was not acknowledged.", + "Blood pump occlusion detected.", + "Dialysate inlet pump occlusion detected.", + "Dialysate outlet pump occlusion detected.", + "Arterial pressure too low during treatment.", + "Arterial pressure too high during treatment.", + "Venous pressure too low during treatment.", + "Venous pressure too high during treatment.", + "Ultrafiltration rate is too high error during treatment.", + "Ultrafiltration volume accuracy error during treatment.", + "RTC battery low.", + "RTC or MCU timer inaccurate.", + "RTC or RAM operations failure (read or write).", + "EEPRON operations (read, write, erase) failure.", + "Manufacturing record CRC failure.", + "Service record CRC failure.", + "Calibration record CRC failure.", + "HW usage data failure.", + "Last disinfection date CRC error.", + "Pressure at outlet of RO pump is out of range.", + "DG temperature sensors fault.", + "DG temperature sensors values are inconsistent.", + "HD communication timeout.", + "FPGA not accepting commanded valve states.", + "Blood pump failed flow vs. motor speed check. \nMismatch with flow rate and rate implied by motor speed.", + "Dialysate inlet pump failed flow vs. motor speed check. \nMismatch with flow rate and rate implied by motor speed.", + "Dialysate outlet pump failed flow vs. motor speed check. \nMismatch with flow rate and rate implied by motor speed.", + "Blood pump failed motor speed check. Measured vs. commanded.", + "Dialysate inlet pump failed motor speed check. Measured vs. commanded.", + "Dialysate outlet pump failed motor speed check. Measured vs. commanded.", + "Blood pump rotor speed too high.", + "Inlet water conductivity too low.", + "ALARM_ID_UNDEFINED" +] +