SignalsFromFile model
Requirements.Examples.Elementary.Sources.SignalsFromFile
ยท source
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
| Name | Kind | Description | |
|---|---|---|---|
| CabinReader | block | Reads T_cabin, p_cabin, packOn and flightPhase from a MA-HS-CSV file |
Components and variables
| Name | Type | Description |
|---|---|---|
reader | CabinReader | Reads the cabin signals from the CSV file |
band1 | Requirements.LogicalBlocks.WithinBand | True while the cabin temperature is within 18 and 27 |
during1 | Requirements.ChecksInFixedWindow.During | While the pack is on, the cabin temperature shall remain within 18 and 27 degC |
whenRising1 | Requirements.ChecksInFixedWindow.WhenRising | When the pack is switched on, the cabin pressure shall be above 0.9 bar |
during2 | Requirements.ChecksInFixedWindow.During | While in cruise (flight phase 2), the pack shall be on |
inCruise | Requirements.Sources.BooleanExpression | True while the flight phase is 2 (cruise) |