From a415e4ebaf5921baa84ec43e71c7eb5a29329248 Mon Sep 17 00:00:00 2001 From: "Lu, Xing" Date: Tue, 30 Sep 2025 11:30:25 -0700 Subject: [PATCH 1/5] Add the actuator type to the read block --- IBPSA/Utilities/IO/SignalExchange/Read.mo | 15 ++++- .../SignalTypes/SignalsForActuatorTravel.mo | 61 +++++++++++++++++++ .../SignalTypes/SignalsForKPIs.mo | 4 +- .../SignalExchange/SignalTypes/package.order | 1 + 4 files changed, 79 insertions(+), 2 deletions(-) create mode 100644 IBPSA/Utilities/IO/SignalExchange/SignalTypes/SignalsForActuatorTravel.mo diff --git a/IBPSA/Utilities/IO/SignalExchange/Read.mo b/IBPSA/Utilities/IO/SignalExchange/Read.mo index f53b698bdf..22e9df77e1 100644 --- a/IBPSA/Utilities/IO/SignalExchange/Read.mo +++ b/IBPSA/Utilities/IO/SignalExchange/Read.mo @@ -23,6 +23,13 @@ model Read "Block that allows a signal to be read as an FMU output" KPIs==IBPSA.Utilities.IO.SignalExchange.SignalTypes.SignalsForKPIs.RelativeHumidity or KPIs==IBPSA.Utilities.IO.SignalExchange.SignalTypes.SignalsForKPIs.CO2Concentration))); + parameter SignalTypes.SignalsForActuatorTravel actuatorType = SignalTypes.SignalsForActuatorTravel.None if ( + KPIs==IBPSA.Utilities.IO.SignalExchange.SignalTypes.SignalsForKPIs.ActuatorTravel) +"Actuator type designation, required if KPIs is ActuatorTravel" + annotation(Dialog(enable=( + KPIs==IBPSA.Utilities.IO.SignalExchange.SignalTypes.SignalsForKPIs.ActuatorTravel))); + +protected final parameter Boolean boptestRead = true "Parameter that is used by tools to search for read block in models"; @@ -53,12 +60,18 @@ variable y, assign a type if needed for KPI calculation using the KPIs parameter, and assign a zone designation using the zone parameter if the KPI calculation is specific to a particular zone (for multi-zone models). See documentation for -the parameter zone for more details. +assign an actuator type designation using the actuatorType parameter. + See documentation for the parameter actuatorType for more details.

", revisions="