modelWeeklyScheduleWindowsLineEndings

Weekly schedule example

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

Example for a weekly schedule that reads the schedule data from a file. There are two file readers, one reading a file with Windows line endings and the other with Linux line endings.

Parameters

TypeNameDefaultDescription
Stringdata"double tab1(3,5) #test: mon:0:0:10 - 3 1 - tue,thu:20:30:59 123 - 45 - wed 12 1 4 -"Contents of schedule.txt

Components

TypeNameDefaultDescription
Buildings.Utilities.IO.Files.WeeklyScheduleweeSchLinWeekly schedule example using file data source
Buildings.Utilities.IO.Files.WeeklyScheduleweeSchWinWeekly schedule example using parameter data source
Diagnostics.AssertEquality[4]assEquTrigger an assertion if the outputs differ

Revisions

  • April 2, 2024, by Michael Wetter:
    First implementation.
    This is for IBPSA, #1860.