Development of a High-Resolution Virtual Terrain for use
Download
Report
Transcript Development of a High-Resolution Virtual Terrain for use
Realtime Technologies, Inc.
Distributed Simulation Training
April 2005
Purpose
Introduce distributed simulation concepts. Build
and test a distributed simulator.
Network Properties
Must set up your
IP address and
Subnet mask
Configure SimCreator Network
The IP Broadcast Address is based
on your IP address and the subnet
mask. Subnet numbers that are
zero become 255 in the IP address
to create the broadcast address:
IP Address: 192.168.0.1
Subnet: 255.255.255.0
-> Broadcast Address:
192.168.0.255
Login Name must be a Windows
user with correct password
Storage path must exist in the ftp
folder
Install IIS
Go to install
windows
components and
select IIS to
install (if it is
checked already
then it is already
installed)
Set Up IIS Manager
Inside the Control
Panel
Inside of
Administrative Tools
Configure IIS
Select ftp sites
Select Default FTP
site
Right click and
select properties
Configure IIS
Unclick
Anonymous
Connections
Configure IIS
Turn on write
permissions to
home directory
Configure SimCreator
Make sure ftp
path is the same
as the local path
in IIS
Build a Simple Simulation
Compile a model
by selecting:
Code -> Compile
Select the
appropriate host
Run the Model Over the Network
Select:
Run->Execute
Make sure the
appropriate host
is selected and
the interpreter
flag is turned off
Compile a Generic Model Over the
Network
Open Standard
Library
Select:
Code->Compile
Generic
Select the
appropriate host
Run the Previous Model Over the
Network with Interpreter
Select:
Run->Execute
Make sure the
appropriate host
is selected and
the interpreter
flag is turned on
Simple Distributed Simulator
Configuring Across Systems
Remote
Local
Models
Local
Remote
Distributed Compile
Parsing: C:\Program Files\SimCreator\Components\User\Class\Distrib_Local.cmp
***
Finished Parsing: C:\Program Files\SimCreator\Components\User\Class\Distrib_Local.cmp
***
Preprocessing: C:\Program Files\SimCreator\Components\User\Class\Distrib_Local.cpp
***
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.
genModel.cpp
Compiling: C:\Program Files\SimCreator\Components\User\Class\Distrib_Local.cmp on local
***
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.
model.cpp
Compiled: C:\Program Files\SimCreator\Components\User\Class\Distrib_Local.exe on localh
***
Parsing: C:\Program Files\SimCreator\Components\User\Class\Distrib_Remote.cmp
***
Finished parsing: C:\Program Files\SimCreator\Components\User\Class\Distrib_Remote.cpp
***
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.
Distrib_Remote.cpp
scDone
Compiling: C:\Program Files\SimCreator\Components\User\Class\Distrib_Remote.cmp on hawk
***
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.
model.cpp
scDone
Compiled: C:\Program Files\SimCreator\Components\User\Class\Distrib_Remote.cmp on hawkm
***
Component Data
COMPONENT Local_Ramp
InitValue [0][0] = 0 [ND] Initial Value Before Ramp
RampTime [0][0] = 1 [sec] Starting Time of Ramp
Slope [0][0] = 1 [ND/sec] Ramp Slope
COMPONENT Remote_Ramp
InitValue [0][0] = 0 [ND] Initial Value Before Ramp
RampTime [0][0] = 1 [sec] Starting Time of Ramp
Slope [0][0] = 1 [ND/sec] Ramp Slope
COMPONENT Remote_Gain
Gain [0][0] = 1 [ND] Gain
Run the Simulation
If the generic
model has all
the
components
can run
interpreted
Results
Results
Distance between two lines is the delay between machines
10
Remote_Gain-SigOut[0][0] (ND)
Remote_Ramp-SigOut[0][0] (ND)
9
8
7
6
5
4
3
2
1
0
0
2
4
6
Time (seconds)
8
10
Rerun With Interpreter On
If the interpreter
is compiled on
every machine.
Then you don’t
have to compile
distributed
models. Just run
them in
interpreted
mode.