SignalsFromFile model

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

Icon of SignalsFromFile

Example for PartialSignalsFromFile (a hand-written MA-HS-CSV reader with named outputs)

Extends Modelica.Icons.Example

PartialSignalsFromFile extended by a block with four named outputs reading Resources/Data/SignalsFromFile.csv — a 300 s cabin run with the pack switched on at 20 s and off at 200 s (stored as same-time event rows), a temperature excursion above 27 degC between 120 s and 150 s, and a flight phase that steps 0 → 1 → 2. Three checks read the outputs: during1 is Violated during the excursion; whenRising1 is Satisfied because the cabin pressure is 1.013 bar when the pack rises at 20 s; during2 is Violated from 200 s, when the pack is switched off while the flight phase is still 2 (until 250 s).

Copyright © 2026 Model Based Innovation LLC. All rights reserved.

Contents

NameKindDescription
CabinReaderblockReads T_cabin, p_cabin, packOn and flightPhase from a MA-HS-CSV file

Components and variables

NameTypeDescription
readerCabinReaderReads the cabin signals from the CSV file
band1Requirements.LogicalBlocks.WithinBandTrue while the cabin temperature is within 18 and 27
during1Requirements.ChecksInFixedWindow.DuringWhile the pack is on, the cabin temperature shall remain within 18 and 27 degC
whenRising1Requirements.ChecksInFixedWindow.WhenRisingWhen the pack is switched on, the cabin pressure shall be above 0.9 bar
during2Requirements.ChecksInFixedWindow.DuringWhile in cruise (flight phase 2), the pack shall be on
inCruiseRequirements.Sources.BooleanExpressionTrue while the flight phase is 2 (cruise)