A MATLAB Toolbox For ASAM MCD-3MC And ASAM MCD3 Measurement & Calibration Automation

Similar documents
CANape ASAM-MCD3 Interface Version Application Note AN-AMC-1-103

Measurement and Calibration Software

ControlDesk Next Generation

Automation Desk 3.3 Tool Set - Test Automation Software. P.BALAJI Software Engineer L&T IES, Mumbai

CANape. Product Information

INCA ASAM ASAP3 Interface. User's Guide November 2010

ECU Measurement and Calibration in a Real-Time Test Environment. Roland Magolei National Instruments Engineering GmbH Embedded Networks

ASAM ASAP3 Interface User s Guide

ASAM ASAP3 Interface User s Guide

Data Declaration System

Host PC Hardware You can use x86-compatible personal computers as host PCs for your dspace applications.

dspace System Requirements for dspace CalDesk Release 6.1 Display Additional Requirements for License Handling Host PC Hardware Host Processor

KiBox To Go. Electronics & Software. Measurement and Evaluation System for Combustion Analysis on Test Benches and in Vehicles

CANape. Product Information

SYSMA Vehicle Tuning and Configuration Tool

CANoe 6.0. The Professional Development and Test Tool for CAN, LIN, MOST, FlexRay and J1587 TOOLS FOR NETWORKS AND DISTRIBUTED SYSTEMS

vcdmstudio Product Information

dspace Release New Features and Migration

What s new in ASAM AE HIL API V1.0.0?

Artisan Technology Group is your source for quality new and certified-used/pre-owned equipment

Collaborating in California Dynamic Skip Fire Development Using HIL API

INCA V7.2 Getting Started

ASAM MCD-1 (XCP) Protocol Layer Specification Base Standard

VISION Calibration and Data Acquisition Software Toolkits

vsignalyzer Product Information

Current shipped hardware state: B012/01 Current released firmware version: HSP Department NE/EHE3. Date Released:

Release Notes INCA-FLOW V4.4. Release Notes. Page 1 of 13

System Architecture HIL Testing ECU Calibration Automotive Solutions Systems and Applications Rapid Prototyping ECU Autocoding

Measuring Everything. White Paper


Current shipped (hardware state): C013/01 Current released firmware version: HSP Department PGA/PRM-M2. Date Released:

OTX ODX. MVCI-Server. Architecture. Diagnostic Sequences. Diagnostic Database. Diagnostic Runtime System

A Seamless Tool Access Architecture from ESL to End Product. Albrecht Mayer (Infineon Microcontrollers) S4D Conference Sophia Antipolis, Sept.

XCP. Version 1.0. The Universal Measurement and Calibration Protocol Family. Part 3. XCP on CAN - Transport Layer Specification

LabVIEW FPGA in Hardware-in-the-Loop Simulation Applications

INCA V7 Performance Tips And Tricks

Data. Declaration System DDS. DDS Advanced Training. Raster & DAQ-Lists Configuration. DDS Advanced Training

Release Notes INCA-FLOW V4.6. Release Notes. Page 1 of 12

Tooling Overview ADAS - Status & Ongoing Developments

INCA V7.1.0 Release Notes INCA V Release Notes. Release: March Page 1 of 13

INCA ASAM MCD-3MC V1.0.1 Interface User s Guide

CANape Option Bypassing

Current shipped (hardware state): C013/01 Current released firmware version: HSP Department NE/EHE3. Date Released:

INCA-SIP User s Guide

Virtualizing the TCU of BMW's 8 speed transmission

ECU Hardware-in-Loop Simulation System Design for Gas Engine based on Virtual Instruments

Department PGA/PRM-M2. Date Released: Department NE/PJM. C h a n g e s

Advanced AC Motor Control S/W Development Sang-Ho Yoon Senior Application Engineer The MathWorks

INCA-FLOW V4.6 - What s new? Guided Calibration for INCA

INCA-EIP V7.2 User s Guide

Product: XETK-T2.2 Rev : 02 Page 1 of 12. Current shipped (hardware state): A010 Current released firmware version: HSP Department PGA/PRM-H

Flash Bootloader. Product Information

LABCAR-OPERATOR What s new

CANape. Version History

Open, Scalable Real-Time Solutions

Product: XETK-T2.1 Rev : 03 Page 1 of 12. Current shipped (hardware state): C011 Current released firmware version: HSP Department MCD/PRM-H

Real Time Testing of PMSM Controller using xpc Target Turnkey solution

A Seamless Tool Access Architecture from ESL to End Product

Currently shipped for ETK-Mode: B010/01. Currently shipped for FETK-Mode: B010/01. Date Released: Department PGA/PRM-M2

Prototyping and Deployment of Real- Time Signal Processing Algorithms for Engine Control and Diagnosis

Current shipped hardware state: D010/01 Current released firmware version: HSP Department PGA/PRM-M2. Date Released:

MotoHawk support for ISO 15765

2016 inn In ovatint SYSTEM novatint version 3 REQUIREMENTS System Requirements D ate :

How Real-Time Testing Improves the Design of a PMSM Controller

INCA-FLEXRAY V7.2 User Manual

Using Cost Effective Distributed HIL for Rapid Prototyping

MORPHEE 2, EtherCAT and Fast ECU Access. D2T s automation system : A fast and reliable communication with test bed

Product Information ES582.1 Compact USB Device

Hexapod Motion Controller with EtherCAT

Product Information ES582.1 Compact USB Device

Accelerating Simulink Optimization, Code Generation & Test Automation Through Parallelization

ForneyLink TM Touchscreen User Interface

Network analysis and automotive diagnostics

Release Presentation. ASAM Common MDF Version Measurement Data Format. Release Date: 2014 / 06 / 11

INCA-FLEXRAY V6.2. User Manual

dspace GmbH Rathenaustr Paderborn Germany

rcube2: Advanced Rapid Prototyping Electronic Control Unit

Electronic SUNSTAR & 传感与控制 Software TEL: FAX: KiBox To Go Measurement and Ev

Prototyping the Autonomous Future Joe Cassar, Engineering Group Manager. dspace Inc Pontiac Trail, Wixom, MI 48393

Simulation-based development of automotive control software with Modelica

Solutions Product Guide Accelerating your Electronic Control Unit Development

What's New in MATLAB for Engineering Data Analytics?

INCA-EIP (Experimental Target Integration Package) V7.0.2 User s Guide

Measurement Solution for new Radar Microcontroller V

Industrial PC for real-time rapid prototyping KEY FEATURES

Cluster Simulation with Integrated Workflow and Test Management. Chandu Puliroju dspace Inc.

Accessories GL Loggers & CANlog

DEMO. The Professional Software Suite for Automatic Control Design and Forecasting. EICASLAB Demo RT-emb

ES6xx Add-On & Hardware Configuration Tool V1.4.0

Real and Virtual Development with SystemDesk

EHOOKS V4.0 PRE-RELEASE

User Documentation. Influx Technology. DiaLog Quick Start Guide

MotionDesk D online animation of simulated mechanical systems in real time Intuitive graphical scene design

POWERLINK Motor Test (Eddy Current Dynamometer)

HSP Update Tool V5.9.0

INCA-MIP V16.1 for INCA V7.2 User s Guide

Design Verification and Calibration Based on Physical Measurements for Electrical Vehicles

INCA-MIP V16.0 for INCA V7.1 User s Guide

Smart HUB - HUB to expand one Master Controller s RS-485 port to 8 RS-485 ports - Use 12VDC power

ASAM MCD-2 D (ODX) Data Model for ECU Diagnostics (Open Diagnostic Data Exchange) Data Model Specification. Base Standard

Transcription:

A MATLAB Toolbox For ASAM MCD-3MC And ASAM MCD3 Measurement & Calibration Automation Donn A Shull, L & D Engineering L.L.C. Thomas G Prucha, dspace Inc. 1

Introduction This presentation describes a new toolbox for MATLAB implementing the ASAM standards for MCD-3MC (ASAP3), and COM/DCOM MCD3, for measurement & calibration (MC). ASAM Standards for Measurement & Calibration Using MATLAB as an MC Client ASAM MC Toolbox Introduction 2

Standards for Measurement & Calibration Remote monitoring & control interfaces Test bench control Automation/optimization Data exchange Calibration data - CDF: Calibration Data File - Microsoft Excel - DCM ASAM MCD-3MC (ASAP3) ASAM MCD3 (COM/DCOM) Data description formats ASAM MCD-2MC (ASAP2) ASAM MCD2 (FIBEX) DBC ASAM MCD-2D (ODX) ODX: Open Diagnostic Data Exchange Measurement data - MATLAB - Microsoft Excel - MDF, Dat 3

Benefits of ASAM-MCD33 compared to to ASAP3 ASAP3 (ASAM MCD-3MC): No continuous data acquisition (only polling single values) No single data source (separate variable lists in calibration and automation system risk of data inconsistencies) ASAM MCD3 (COM/DCOM) Continuous data acquisition Single data source: Query of available variables by automation system -> data consistency Standardized interface for Measurement, Calibration and Diagnostics supported by any OLE-capable application like MATLAB, MS Excel, etc. Integration of calibration tool with or without GUI 4

COM/DCOM API with CalDesk Automation and/or optimization tool COM/DCOM Calibrate parameters, curves, maps offline or online Switch to offline/online mode Activate working or reference page Define variables to be captured Application Programming Interface (API) Select experiment and device Check for available variables and their properties Capture (continuously) data COM/DCOM (ASAM MCD3) Remote control of CalDesk via COM/DCOM API Continuous data acquisition in real-time raster Data consistency due to single data source Supported by any COM/DCOM-capable application, e.g., MATLAB, MS Excel, Automation Desk, and ControlDesk API standard for measurement, calibration, and diagnostics (ASAM MCD3) CalDesk (with or without GUI) ECU 5

COM/DCOM API with dspace CalDesk Automation and/or optimization tool DCOM Application Programming Interface (API) DCOM (ASAM MCD3) CalDesk (with or without GUI) Client Server Benchmark: DCOM connection Client and server on different PCs connected via 100 Mbit/s Ethernet LAN C++ test application on client system, no further computation of values 50 variables can be read (polled) every 125 ms 50 variables can be written every 100 ms 25 variables can be measured at 200 Hz (5ms raster) Client System: Pentium IV, 2.4 GHz, 512 MB RAM Server System: Pentium IV, 2.0 GHz, 512 MB RAM 6

Automated Calibration Round-Trip Back to Model MATLAB Server Rapid Controller Prototyping System MC Client MATLAB Client 1: Real-Time Interface to SIMULINK MC Server Measurement and Calibration System 7

Typical Use Cases for MATLAB MC Client Test Bed/Dynamometer Lab Automated Spark ignition optimization Automated Fuel optimization Automated Cam timing optimization Transmission shift algorithm optimization Transmission line pressure optimization Research Remote monitoring and control Time-synchronized data acquisition from distributed sources Real-time analysis of complex systems Automated Loop tuning (e.g. PI, PID) Automated calibration of Simulink Models 8

Using MATLAB as an MC Client ASAM MC clients can be constructed in a variety of languages. The choice depends on how the client will be used. MATLAB offers several unique advantages as a client environment. Interactive IDE eases automation development Built in Serial External Interfaces Support and COM/DCOM Support Large collection of toolboxes available for advanced data analysis Support for object oriented programming 9

MATLAB s Classes and Objects The MATLAB programming language includes object oriented programming capabilities. This allows the creation of objects which are easy to use in the scripting environment while hiding the details of interface programming. Function and operator overloading Encapsulation of data and methods Inheritance Aggregation 10

Basic MATLAB Object Syntax MATLAB has a simple syntax for creating instances of an object and accessing its methods. These objects can be used interactively from the command line, or in programs. Creating an Instance of an object obj = objectname(objectparameters); Using an objects methods methodresult = methodname(obj, methodparameters); 11

ASAM MC Toolbox Introduction The ASAM MC Toolbox core functionality is provided by two MATLAB objects. One object supports ASAP3 communication. The other object handles the ASAM_MCD3_V2.00 COM/DCOM standard. ASAP3 object inherits from Serial or TCP/IP object Data for transmit and receive telegrams Private methods for telegram handling Public methods implement ASAP3 functions MCD3 object encapsulates COM/DCOM component Methods facilitate component use 12

ASAM MCD-3MC (ASAP3) 16.12.1999 MCD-18-3MC-SP-R-020101-E.pdf Automation System MATLAB MCD-3MC RS-232 or TCP/IP Measurement/Calibration CalDesk CANape INCA INCA Vision Vision ECU Engine Engine 13

ASAP3 Get and Set Parameter Sequence Init Identify Get Parameter Set Parameter 14

MATLAB ASAP3 Object Example asap3 object code for passing calibration data between MATLAB and a calibration tool. x = asap3; fopen(x); init(x); identify(x, version, 'ASAMToolbox'); value = get_parameter(x, lun, 'characteristicname'); set_parameter(x, lun, 'characteristicname', newvalue); 15

ASAM MCD3 Object Oriented Specification 31.03.2005 ASAM_MCD3_V2.00.02_Specification.pdf Automation System MATLAB MCD3 COM/DCOM Measurement Calibration System ECU Engine Engine 16

ASAM MCD3 General Operations Set Project Add Link & Image Calibration Operations Measurement Operations 17

ASAM MCD3 Measurement Sequence Add Collector Configure Collector Add Item Measure 18

MATLAB MCD3 Object Example mc3 object code for bringing measurement data into MATLAB. x = mc3('dspace', 'remotehost'); set_project(x, projectname); add_logical_link(x, logicallink, linkimage); add_collector(x, logicallink); configure_collector(x, logicallink, collectorindex, buffersize, rateindex); add_measurement(x, {'varname'}); sig = measure(x); 19

CalDesk 1.2 With XCP on CAN Demo With ASAM MC Toolbox RCP Bypass and Calibration using XCP on CAN ASAM MC Toolbox using DCOM for Remote Control MicroAutoBox High-Speed Link MC Client dspace Calibration Hub MC Server USB XCP on CAN CSM Dual-Scan CAN Axiom CMD565 as ECU 20