Скачиваний:
21
Добавлен:
25.04.2015
Размер:
1.28 Mб
Скачать

38 6 Model file format

6.2.20 Model help file

As of version 1.37 it is possible to specify a help file for the model. The help file can be in any format as the simulation program executes the application, which is associated with the help file.

The help file should be located in the same directory as the model. If the help file consists of several files then you should manually include files other than the installed help file when creating a distributable copy (see chapter 13).

The help file is installed by calling the following procedure within SetupProblem:

Heading

procedure AddHelpFile(FileName : PChar);

Parameters

FileName Name of the help file (without directory information).

Example

AddHelpFile('Example.html');

6.3 PreCalc

PreCalc is called just before the simulation is started. This procedure can be used to initiate variables, allocating memory etc. Furthermore PreCalc is used to specify initial values for dynamic variables based on initial value parameters, and to add static variables. This is treated in chapter 6.14.

If you set the ShowStartState parameter in a call to SetupState to false, you can specify the initial state in PreCalc. This is done by calling SetStartState.

You can also add explicit variables in PreCalc by calling AddExplicitVar and control the sample time by calling SetSampleTime.

6.3.1 SetStartState

Heading

procedure SetStartState(Value : TInteger);

Parameters

Value Number of the initial state.

Example

SetStartState(1);

WinDali

Morten Juel Skovrup

Соседние файлы в папке Model and programs
  • #
    25.04.201512 б17heatrecoverysystem.LoadPrf
  • #
    25.04.2015249.28 Кб17heatrecoverysystem.set
  • #
    25.04.201537.38 Кб20Model help.doc
  • #
    25.04.2015509 б18SimIntPlt.cnt
  • #
    25.04.201562.07 Кб17SimIntPlt.hlp
  • #
    25.04.20151.28 Mб21WinDali.pdf