Realtime Technologies, Inc. Distributed Simulation Training April 2005.

Post on 31-Dec-2015

214 views 0 download

transcript

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.1Subnet: 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

Local

Remote

Models

Local Remote

Distributed CompileParsing: 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 80x86Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

genModel.cppCompiling: 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 80x86Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

model.cppCompiled: 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 80x86Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

Distrib_Remote.cppscDoneCompiling: 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 80x86Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

model.cppscDoneCompiled: C:\Program Files\SimCreator\Components\User\Class\Distrib_Remote.cmp on hawkm***

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 80x86Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

genModel.cppCompiling: 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 80x86Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

model.cppCompiled: 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 80x86Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

Distrib_Remote.cppscDoneCompiling: 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 80x86Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

model.cppscDoneCompiled: C:\Program Files\SimCreator\Components\User\Class\Distrib_Remote.cmp on hawkm***

Component Data

COMPONENT Local_RampInitValue [0][0] = 0 [ND] Initial Value Before RampRampTime [0][0] = 1 [sec] Starting Time of RampSlope [0][0] = 1 [ND/sec] Ramp Slope

COMPONENT Remote_RampInitValue [0][0] = 0 [ND] Initial Value Before RampRampTime [0][0] = 1 [sec] Starting Time of RampSlope [0][0] = 1 [ND/sec] Ramp Slope

COMPONENT Remote_GainGain [0][0] = 1 [ND] Gain

Run the Simulation

If the generic model has all the components can run interpreted

Results

Results

0

1

2

3

4

5

6

7

8

9

10

0 2 4 6 8 10

Rem

ote

_G

ain

-Sig

Out[0][0] (N

D)

Time (seconds)

Remote_Gain-SigOut[0][0] (ND)Remote_Ramp-SigOut[0][0] (ND)

Distance between two lines is the delay between machines

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.