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

48 6 Model file format

Heading

procedure CreatePlot(var PlotNum : TInteger; XAxisType : TInteger; XLabel : PChar; YAxisType : TInteger; YLabel : PChar);

Parameters

PlotNum Number of the plot created (this value is used in calls to AddCurveToPlot – see below)

XAxisType Type of the X-axis. If 0 then linear axis. If 1 then logarithmic. XLabel Label on X-axis.

YAxisType Type of the Y-axis. If 0 then linear axis. If 1 then logarithmic. YLabel Label on Y-axis

Example var

PlotNum : TInteger;

CreatePlot(PlotNum,0,'X-Axis',0,'Y-Axis');

Heading

procedure AddCurveToPlot(PlotNum : TInteger; CurveName : PChar; XData,YData : array of TFloat);

Parameters

Number returned from call to CreatePlot

PlotNum

CurveName

Name of the curve.

XData

Array with x-coordinates of the curve.

YData

Array with y-coordinates of the curve.

Shortcut

 

Write curve and press <Ctrl>+J.

Example var

X,Y : array[1..20] of TFloat;

AddCurveToPlot(PlotNum,'TestCurve',X,Y);

An example showing how to use the procedures is included in the demos.

6.12 OnSaveSettings

This procedure is called every time the user selects the File|Save menu in the simulation program. The name of the file the settings are saved to is passed in the parameter FileName.

If you want to save additional information together with the settings the Simulation program saves, you can do it in this procedure. You should not write directly to file with the name passed as FileName – instead you could save your custom setting in a file with the same name but with a different extension.

6.13 OnLoadSettings

OnLoadSetting is called every time the user selects the File|Open menu in the Simulation program. The name of the file the user opens is passed in the parameter FileName.

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