CabinReader block
Requirements.Examples.Elementary.Sources.SignalsFromFile.CabinReader
ยท source
Reads T_cabin, p_cabin, packOn and flightPhase from a MA-HS-CSV file
Extends Requirements.Sources.PartialSignalsFromFile
The documented pattern for reading a MA-HS-CSV file without the generator: the three name lists fix the column types, one output per column, the column index passed to the C reader fixed at authoring time; Real outputs as declaration equations, Boolean and Integer outputs assigned in the when-clause that fires at the file's events, when {fileEvent, initial()} (since 0.14.0; before, the example used the time event time >= pre(nextTimeEvent) that the reader itself left in 0.13.1).
Copyright © 2026 Model Based Innovation LLC. All rights reserved.
Components and variables
| Name | Type | Description |
|---|---|---|
T_cabin | Modelica.Blocks.Interfaces.RealOutput | Cabin temperature, column T_cabin of the file |
p_cabin | Modelica.Blocks.Interfaces.RealOutput | Cabin pressure, column p_cabin of the file |
packOn | Modelica.Blocks.Interfaces.BooleanOutput | Pack on/off, column packOn of the file |
flightPhase | Modelica.Blocks.Interfaces.IntegerOutput | Flight phase, column flightPhase of the file |