CabinReader block

Requirements.Examples.Elementary.Sources.SignalsFromFile.CabinReader  ยท source

Icon of CabinReader

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

NameTypeDescription
T_cabinModelica.Blocks.Interfaces.RealOutputCabin temperature, column T_cabin of the file
p_cabinModelica.Blocks.Interfaces.RealOutputCabin pressure, column p_cabin of the file
packOnModelica.Blocks.Interfaces.BooleanOutputPack on/off, column packOn of the file
flightPhaseModelica.Blocks.Interfaces.IntegerOutputFlight phase, column flightPhase of the file