14
Integration of GTSUITE with NI VeriStand for SiL and HiL Applications Tara Hemami Brian Froelich November 8, 2010

Integration of GT‐‐‐‐SUITE with NI VeriStand for SiL and ...in VeriStand – Other option is to run the GT Power S-function wrapped in Simulink and compiled as dll, or in Simulink

  • Upload
    others

  • View
    21

  • Download
    2

Embed Size (px)

Citation preview

Page 1: Integration of GT‐‐‐‐SUITE with NI VeriStand for SiL and ...in VeriStand – Other option is to run the GT Power S-function wrapped in Simulink and compiled as dll, or in Simulink

Integration of GT‐‐‐‐SUITE with NI VeriStand for SiLand HiL Applications

Tara Hemami

Brian Froelich

November 8, 2010

Page 2: Integration of GT‐‐‐‐SUITE with NI VeriStand for SiL and ...in VeriStand – Other option is to run the GT Power S-function wrapped in Simulink and compiled as dll, or in Simulink

2

SiL and HiL systems at Cummins

� Integrate models for system optimization and controls development and testing

Aftertreatment

Engine

VehicleIntegrated System

Models

Waste Heat

Recovery

Controls

Page 3: Integration of GT‐‐‐‐SUITE with NI VeriStand for SiL and ...in VeriStand – Other option is to run the GT Power S-function wrapped in Simulink and compiled as dll, or in Simulink

3

Tool Integration

Simulink

GTPower

Real Time Workshop (& Compilers)Matlab

Cyflex PUMA

Pure Simulation User Hardware In the Loop

User

Simulink

Labview

Simulink

Rapid Sim

ExcelGuide

(Windows)

Guide

(Linux)

Page 4: Integration of GT‐‐‐‐SUITE with NI VeriStand for SiL and ...in VeriStand – Other option is to run the GT Power S-function wrapped in Simulink and compiled as dll, or in Simulink

What is VeriStand

� National Instruments product

� Software environment for configuring real-time testing applications.

� NI VeriStand helps you configure a multicore-ready real-time engine

� NI VeriStand can also import control algorithms, simulation models, and other tasks from NI LabVIEWsoftware and third-party environments

4

Page 5: Integration of GT‐‐‐‐SUITE with NI VeriStand for SiL and ...in VeriStand – Other option is to run the GT Power S-function wrapped in Simulink and compiled as dll, or in Simulink

Current HiL Simulink Environment

5

Simulink

Real Time

Page 6: Integration of GT‐‐‐‐SUITE with NI VeriStand for SiL and ...in VeriStand – Other option is to run the GT Power S-function wrapped in Simulink and compiled as dll, or in Simulink

Future HiL Simulink Environment

6

VeriStand

VeriStand

VeriStand

VeriStand

Page 7: Integration of GT‐‐‐‐SUITE with NI VeriStand for SiL and ...in VeriStand – Other option is to run the GT Power S-function wrapped in Simulink and compiled as dll, or in Simulink

VeriStand Advantages

� Simulink was not designed for use as integration environment

� VeriStand runs models in parallel very easy

– Each of the components above can now run on individual

processors and you are only limited to the number of

processors your computer has

– Less dependant on improvement in processing speed

� VeriStand allows easy transition to CIL from Pure Sim

7

Page 8: Integration of GT‐‐‐‐SUITE with NI VeriStand for SiL and ...in VeriStand – Other option is to run the GT Power S-function wrapped in Simulink and compiled as dll, or in Simulink

Example of System Model in VeriStand

� Engine (platform specific)

� Engine system (common systems like cooling sys)

� Aftertreatment

� Controller interface

� Controls components

� Test cell

� Operator

� Route

� Transmission

� Transmission controller

� Vehicle

Page 9: Integration of GT‐‐‐‐SUITE with NI VeriStand for SiL and ...in VeriStand – Other option is to run the GT Power S-function wrapped in Simulink and compiled as dll, or in Simulink

Mapping of Signals - VeriStand

Page 10: Integration of GT‐‐‐‐SUITE with NI VeriStand for SiL and ...in VeriStand – Other option is to run the GT Power S-function wrapped in Simulink and compiled as dll, or in Simulink

GT-Power in VeriStand

� We asked Gamma to allow GT Power to run natively in VeriStand

– Other option is to run the GT Power S-function wrapped in

Simulink and compiled as dll, or in Simulink as a model

� Waste heat recovery components (2 phase flow) were needed in GTSuite-RT

� GT Power available natively in VeriStand 2009 & VeriStand 2010 in the form of dll’s

� Ability to run separate GT models on separate processors (e.g. waste heat recovery and the engine)

10

Page 11: Integration of GT‐‐‐‐SUITE with NI VeriStand for SiL and ...in VeriStand – Other option is to run the GT Power S-function wrapped in Simulink and compiled as dll, or in Simulink

What is required to run natively in VS

� GT-Suite version 7.0 build 4 or newer

� Visual Studio 2005 or Visual Studio 2008 Express C++

� VeriStand 2009 or 2010

11

Must have the

Simulink I/O block

Page 12: Integration of GT‐‐‐‐SUITE with NI VeriStand for SiL and ...in VeriStand – Other option is to run the GT Power S-function wrapped in Simulink and compiled as dll, or in Simulink

Process for GTP in VeriStand

� Create model_params.h

– Defines I/O of model, name of *.dat file

� Compile DLL

– Using gtsuitert.bat compiles dll using Visual Studio C++

– Single precision and double precision require separate

directories for compiling

� Move dll to run directory with supporting files

– Turbine

– Compressor

– Neural Nets

– Fluid property files (.fld)

12

Page 13: Integration of GT‐‐‐‐SUITE with NI VeriStand for SiL and ...in VeriStand – Other option is to run the GT Power S-function wrapped in Simulink and compiled as dll, or in Simulink

Conclusions and Future Work

� Implementing VeriStand for next generation engine work

� Working with Gamma to enable parameter tuning in VeriStand

– Current method requires recompiling dll and editing

model_params.h with tunable parameters

13

Page 14: Integration of GT‐‐‐‐SUITE with NI VeriStand for SiL and ...in VeriStand – Other option is to run the GT Power S-function wrapped in Simulink and compiled as dll, or in Simulink

Thanks!

� Iakavos Papadimitriou (Gamma)

� Yanni Papadimitriou (Gamma)

� Brian Froelich (Cummins)

� Ben Snyder (Cummins)

� Gary Salemme (Cummins)

14