Simware framework hello world: A webinar

17
SimWare Framework the full simulation

description

Know how to install SimWare Framework version 4.2.2. Instalation and configuration for Windows and Linux.

Transcript of Simware framework hello world: A webinar

Page 1: Simware framework hello world: A webinar

What is HLA raised to the power of DDS?

SimWare Frameworkthe full simulation

Page 2: Simware framework hello world: A webinar

José Ramón MartínezMSc Industrial Engineering

Presales Team Leader

NADS

José Carlos DíazMSc Computing

International Sales Manager

NADS

Speakers

[email protected]@nads.es

Page 3: Simware framework hello world: A webinar

Total time 45 minutes

AGENDA

Brief introduction to SimWare

Installation and hands on of SimWare on

Windows and Linux

Questions

Page 4: Simware framework hello world: A webinar

What is SimWare?Three main pillars

Page 5: Simware framework hello world: A webinar

SimWare: creating simulators

SimWare is a simulation framework for creating new simulators from scratch

• Create new simulators without seeing any code• Care only about data model• Simulation backbone is DDS

Page 6: Simware framework hello world: A webinar

HLA data model

MULATION

Modeler is the tool for modelling data HLA-Style Objetcs and interactions HLA data types

Data models can be saved and loaded The tool generates the data library automatically

Modeler: Data modeling from the FOM

Page 7: Simware framework hello world: A webinar

Based on Matlab/Simulink for making your simulation models inside SimWare framework

Build your simulation modules with all the power of Matlab/Simulink Test your simulation logic Reuse your simulation modules

SimDeveloper: Simulation models you can really reuse

You don´t need programming skills!

Page 8: Simware framework hello world: A webinar

No programming skills are

needed!!!

HLA PITCH federationHLA Mäk federation

Simware PowerLink: Data bridge made easy

Page 9: Simware framework hello world: A webinar

NcWare SIM: Simple but powerful API

ncware::Simulation =ncware::SimFactory::createSimulation("1","airplane",

ncware::TransportType::DDS_OPENSPLICE );

simulationExample->Join();

Create simulator

Nombre Descripción

DDS_OPENSPLICE Simulation over DDS using the

implementation of

OpenSplice.

HLA13_DMSO Simulation using DMSO RTI

with HLA13.

HLA13_MAK Simulation using MAK RTI with

HLA13.

HLA13_PITCH Simulation using PITCH RTI

with HLA13.

HLA1516_NEXTEL Simulation using SIMWARE

RTI.

HLA1516_MAK Simulation using MAK RTI with

HLA1516.

HLA1516_PITCH Simulation using PITCH RTI

with HLA1516.

ncware::SimPublisher<Vector3D> * dataPublisher;

dataPublisher=ncware::SimFactory::createPublisher<Vector3D>(simulationExample);

dataPublisher->registerInstanceName (“Boeing747”);

Vector3D * dataVector3D = dataPublisher->Declare( );

dataVector3D->x = 1;

dataVector3D->y = 1;

dataVector3D->z = 1;dataPublisher ->Send (“Boeing747”, dataVector3D );

Create publisher

ncware::ObjectListener<Vector3D> * listenerVector3D = new userListener();

ncware::SimSubscriber<Vector3D> * dataSubscriber =

ncware::SimFactory::createSubscriber<Vector3D> (simulationExample, listenerVector3D);

dataSubscriber->Declare();

void userListener::attribute_received (Vector3D * Data, std::string const & instanceName)

{

std::cout << “ Instance name = " << instanceName << std::endl;

std::cout << " Coordinate X = " << data->x << std::endl;

std::cout << " Coordinate Y = " << data->y << std::endl;

std::cout << " Coordinate Z = " << data->z << std::endl;

}

Create subscriber

Page 10: Simware framework hello world: A webinar

SimWare: managing simulators

SimWare is a simulation framework for managing new simulators and old simulators in joint simulation

• Manage your new simulator

• Control the instances of the simulation

• Manage old simulators in joint simulations

Page 11: Simware framework hello world: A webinar

Scheduler

Simulationengine

eHost- <config>

<EJEC nid="2" id="3" name="EJEC" HlaFed="Aislado"

HlaSom="Som.xml" SchedFrec="25" HTime="5" GTime="3"

TTime="0" UTime="3" NotIni="no" NotFin="no" NotCierre="no"

Critico="si" NotGrab="si" />

- <EHOST4 nid="2" id="4" name="MOTOR1" SchedSecuencial="si"

NotIni="si" NotFin="si" NotCierre="no" Critico="si" NotGrab="si">

<Mod0 nid="2" id="16" name="Modulo_ModCIRCLE"

type="Modulo_ModCIRCLE" SchedFrec="50" SchedOrden="0"

SchedPrio="1" SchedOffset="0" NotIni="no" NotDisc="no"

NotEstab="no" NotFin="si" NotCierre="no" Critico="si" NotGrab="si"

/>

</EHOST4>

</config>

- <!--

Simulationengine

Configuration file

ACS

eHost: Simulation management

Scheduler: Is an advanced scheduler for controlling the real time clock

and the state machine. It coordinates and balances many Simulation

Engines that are in different nodes.

Simulation Engines: Are the simulation engines, manage the Simulation

modules in each simulation node.

Page 12: Simware framework hello world: A webinar

ACS—Application to Control SimWare simulations, is a GUI that allows tomanage SimWare state machine and simulation assets’ parameters duringexecution

ACS: Application to Control Simulations

Page 13: Simware framework hello world: A webinar

SimWare: joint simulations

With SimWare you can manage joint simulator of existing HLA and DIS simulators

• Connect and control

• DIS• Pitch HLA• Mäk HLA• DDS

• Add DDS live simulations

Page 14: Simware framework hello world: A webinar

Hands on

Believing is good, seeing is better…

doing it is even better

Page 15: Simware framework hello world: A webinar

Hands On Agenda Installation of the product

Structure of directories &

documentation

Environment variables

License

Communication layer: QoS

Running the applications

NcWare Sim and its API

Running the example

Modifying and compiling

shapes; environment,

compilers, etc.

Windows

ETHERNET

Page 16: Simware framework hello world: A webinar

QUESTIONS?

Page 17: Simware framework hello world: A webinar

Please address any questions about this presentation to:

José Ramón Martínez SalioTechnical Presales [email protected]

@NADS_news /NEXTELADS Nextel Aerospacejrmses