+ All Categories
Home > Documents > Realtime Technologies, Inc. Distributed Simulation Training April 2005.

Realtime Technologies, Inc. Distributed Simulation Training April 2005.

Date post: 31-Dec-2015
Category:
Upload: millicent-melton
View: 214 times
Download: 0 times
Share this document with a friend
23
Realtime Technologies, Inc. Distributed Simulation Training April 2005
Transcript
Page 1: Realtime Technologies, Inc. Distributed Simulation Training  April 2005.

Realtime Technologies, Inc.Distributed Simulation Training

April 2005

Page 2: Realtime Technologies, Inc. Distributed Simulation Training  April 2005.

Purpose

Introduce distributed simulation concepts. Build and test a distributed simulator.

Page 3: Realtime Technologies, Inc. Distributed Simulation Training  April 2005.

Network Properties

Must set up your IP address and Subnet mask

Page 4: Realtime Technologies, Inc. Distributed Simulation Training  April 2005.

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

Page 5: Realtime Technologies, Inc. Distributed Simulation Training  April 2005.

Install IIS

Go to install windows components and select IIS to install (if it is checked already then it is already installed)

Page 6: Realtime Technologies, Inc. Distributed Simulation Training  April 2005.

Set Up IIS Manager

Inside the Control Panel

Inside of Administrative Tools

Page 7: Realtime Technologies, Inc. Distributed Simulation Training  April 2005.

Configure IIS

Select ftp sites Select Default FTP

site Right click and

select properties

Page 8: Realtime Technologies, Inc. Distributed Simulation Training  April 2005.

Configure IIS

Unclick Anonymous Connections

Page 9: Realtime Technologies, Inc. Distributed Simulation Training  April 2005.

Configure IIS

Turn on write permissions to home directory

Page 10: Realtime Technologies, Inc. Distributed Simulation Training  April 2005.

Configure SimCreator

Make sure ftp path is the same as the local path in IIS

Page 11: Realtime Technologies, Inc. Distributed Simulation Training  April 2005.

Build a Simple Simulation

Compile a model by selecting:Code -> Compile

Select the appropriate host

Page 12: Realtime Technologies, Inc. Distributed Simulation Training  April 2005.

Run the Model Over the Network

Select:Run->Execute

Make sure the appropriate host is selected and the interpreter flag is turned off

Page 13: Realtime Technologies, Inc. Distributed Simulation Training  April 2005.

Compile a Generic Model Over the Network

Open Standard Library

Select:Code->Compile Generic

Select the appropriate host

Page 14: Realtime Technologies, Inc. Distributed Simulation Training  April 2005.

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

Page 15: Realtime Technologies, Inc. Distributed Simulation Training  April 2005.

Simple Distributed Simulator

Page 16: Realtime Technologies, Inc. Distributed Simulation Training  April 2005.

Configuring Across Systems

Local

Remote

Page 17: Realtime Technologies, Inc. Distributed Simulation Training  April 2005.

Models

Local Remote

Page 18: Realtime Technologies, Inc. Distributed Simulation Training  April 2005.

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***

Page 19: Realtime Technologies, Inc. Distributed Simulation Training  April 2005.

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

Page 20: Realtime Technologies, Inc. Distributed Simulation Training  April 2005.

Run the Simulation

If the generic model has all the components can run interpreted

Page 21: Realtime Technologies, Inc. Distributed Simulation Training  April 2005.

Results

Page 22: Realtime Technologies, Inc. Distributed Simulation Training  April 2005.

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

Page 23: Realtime Technologies, Inc. Distributed Simulation Training  April 2005.

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.


Recommended