Buildings.Utilities.IO.Files.Examples
Examples package
Information
This package contains examples for the use of models that can be found in Buildings.Utilities.IO.Files.
Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).
Package Content
Name | Description |
---|---|
CSVReader | Reader for csv files generated by CSVWriter |
CSVWriter | Example of csv writer use |
JSONWriter | Example use of the JSON writer |
Printer | Test model for printer |
WeeklySchedule | Weekly schedule example |
WeeklySchedule7to19 | Weekly schedule example that outputs 1 from 7:00 to 19:00 on week-days, and 0 otherwise |
BaseClasses | Package with base classes for Buildings.Utilities.IO.Files.Examples |
Buildings.Utilities.IO.Files.Examples.CSVReader
Reader for csv files generated by CSVWriter
Information
This model demonstrates how a CombiTimeTable
can be used
to read a text file that contains a table. The text file is stored in
Buildings//Resources/Data/Utilities/IO/Files/Examples/CSVReader/Data.txt
.
It has the format of a file that can be generated by
Buildings.Utilities.IO.Files.Examples.CSVWriter.
Extends from Buildings.Utilities.IO.Files.Examples.BaseClasses.PartialCSV (Base model for CSV reader and writer example).
Modelica definition
Buildings.Utilities.IO.Files.Examples.CSVWriter
Example of csv writer use
Information
This model demonstrates the use of the csv file writer.
Extends from Buildings.Utilities.IO.Files.Examples.BaseClasses.PartialCSV (Base model for CSV reader and writer example).
Modelica definition
Buildings.Utilities.IO.Files.Examples.JSONWriter
Example use of the JSON writer
Information
This model generates four json files, using a single or multiple inputs and at different points in time.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Modelica definition
Buildings.Utilities.IO.Files.Examples.Printer
Test model for printer
Information
Extends from Modelica.Icons.Example (Icon for runnable examples).
Modelica definition
Buildings.Utilities.IO.Files.Examples.WeeklySchedule
Weekly schedule example
Information
Example and consistency test for a weekly schedule.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
Type | Name | Default | Description |
---|---|---|---|
String | data | "double tab1(3,5) #test: mon... | Contents of schedule.txt |
Modelica definition
Buildings.Utilities.IO.Files.Examples.WeeklySchedule7to19
Weekly schedule example that outputs 1 from 7:00 to 19:00 on week-days, and 0 otherwise
Information
Example of a weekly schedule that outputs 1 from 7:00 to 19:00 on week-days, and 0 otherwise
Extends from Modelica.Icons.Example (Icon for runnable examples).