Modelica.Utilities.System

Interaction with environment

Information


This package contains functions to interact with the environment.

Extends from Modelica.Icons.Package (Icon for standard packages).

Package Content

NameDescription
Modelica.Utilities.System.getWorkDirectory getWorkDirectory Get full path name of work directory
Modelica.Utilities.System.setWorkDirectory setWorkDirectory Set work directory
Modelica.Utilities.System.getEnvironmentVariable getEnvironmentVariable Get content of environment variable
Modelica.Utilities.System.setEnvironmentVariable setEnvironmentVariable Set content of local environment variable
Modelica.Utilities.System.command command Execute command in default shell
Modelica.Utilities.System.exit exit Terminate execution of Modelica environment

Modelica.Utilities.System.getWorkDirectory Modelica.Utilities.System.getWorkDirectory

Get full path name of work directory

Information



Extends from Modelica.Icons.Function (Icon for functions).

Outputs

NameDescription
directoryFull path name of work directory

Modelica.Utilities.System.setWorkDirectory Modelica.Utilities.System.setWorkDirectory

Set work directory

Information



Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
directoryNew work directory

Modelica.Utilities.System.getEnvironmentVariable Modelica.Utilities.System.getEnvironmentVariable

Get content of environment variable

Information



Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
nameName of environment variable
convertToSlashTrue, if native directory separators in 'result' shall be changed to '/'

Outputs

NameDescription
contentContent of environment variable (empty, if not existent)
exist= true, if environment variable exists; = false, if it does not exist

Modelica.Utilities.System.setEnvironmentVariable Modelica.Utilities.System.setEnvironmentVariable

Set content of local environment variable

Information



Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
nameName of environment variable
contentValue of the environment variable
convertFromSlashTrue, if '/' in content shall be changed to the native directory separator

Modelica.Utilities.System.command Modelica.Utilities.System.command

Execute command in default shell

Information



Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
stringString to be passed to shell

Outputs

NameDescription
resultReturn value from command (depends on environment)

Modelica.Utilities.System.exit Modelica.Utilities.System.exit

Terminate execution of Modelica environment

Information



Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
statusResult to be returned by environment (0 means success)

Automatically generated Mon Sep 23 17:21:10 2013.