Packages
Math
Includes many mathematical and logical functions.
DuctNet
Static state package, used for duct network calculation.
Refrigeration
Static state package, for refrigeration system design and optimization. Detail
ECSOptim
Static state package, for airplane Environmental Control System(ECS, or A/C system) design and optimization.
HXFinPlate
Static state package, for Fin-Plate style heat exchangers design and simulation.
General
Dynamic state package, general components for dynamic simulation.
Interactive
Dynamic state package, interactive components for dynamic simulation.
Other software
Psychrometric Chart + Duct Calculator
This psychrometric chart tool is precise, powerful and easy to use. Detail
Contact
Phone: +1 347 981 9032

Dynamic system real time simulation

Abstract

In dynamic system real time simulation, the simulation time is synchronous or proportional to the real time, so that to simulate man operating or to observe the actual response of the system.

Sample

PID controller real time simulation

As steps of last chapter, add two component from interactive package to the project.

Interactive -> ToggleSwitch

ToggleSwitch is used to switch different output to downstream network by hand.

9 setting values maximum can be inputed to this component. If two values in turn are the same, then the values from the second value will be ignored.

In this sample, the setting values is as follows:

X1 50
X2 40
X3 30
X4 20
X5 10
X6 0
X7 -10
X8 -10
X9 0
INV 3

INV=3 ,means the initial setting number is, namely X3.

It's output S2 is connected to the input ST of Step_0, so the input value of Step_0 will be taken by ToggleSwitch->S2.

Interactive -> FloatChart

FloatChart is used to output real time parameter changing curve.

4 plot parameters maximum can be inputed in this component. One parameter used in this sample.

Connect output S2 of SCurve_0 input Y1 of this component, other inputs are as follows:

X 0
Y2 0
Y3 0
Y4 0
YMIN 0
YMAX 0
XLEN 5
TR 0.02
SHOW 1

X=0 means the X axis is represent time.

YMIN and YMAX is the range of Y axis, if YMIN=YMAX, the range is adjusted automatically.

XLEN is display length of X axis, which is "s" second.

TR is refresh time interval of the curve chart.

SHOW=1 means the plot window is visible, SHOW=0 means hide.

Project system network is as follow:


Click "Real time simulation" speed button toolbar or from menu, the following dialog pops up:


Set real time simulation time interval to 5ms(This value will be changed if computer performance is insufficient), set time scale to 1(Same to real time).

Click "Initial" button, the interactice component windows will be initialized, and displayed by requiring. Drag the window to proper place in screen.

Click "Start" button, the real time simulation begins to run. Operating to interactive component window will influence system response, this can be seen on real time output plot curve.


Click "Terminate" button to stop the process, of click "Finish" button to exit it.


Privacy | Safety policy | All rights reserved.