SOFT DB - SimulinkToSR Converter - Quick User Guide

Similar documents
Simulink to Signal Ranger. Converter. By Soft db inc. March 2011

Generating ASAP2 Files

Personalise your HSBCnet workspace

PSIM SIMULATION SOFTWARE. TUTORIAL How to use the Simcoupler

Tutorial - Exporting Models to Simulink

Rotary Motion Servo Plant: SRV02. Rotary Experiment #00: QuaRC Integration. Using SRV02 with QuaRC. Student Manual

ECE 487 LAB 1 ÇANKAYA UNIVERSITY Overview of DSP Board

How to create a library of Simulink model(s-fun) to hide source code.

Experiment 3. Getting Start with Simulink

Open Loop Step Response

How to configure the Matlab interface

EXPERIMENT 1 INTRODUCTION TO MEMS Pro v5.1: DESIGNING a PIEZO- RESISTIVE PRESSURE SENSOR

Quick Start Guide Sense2GoL Module. July 12 th 2018

Experiment 1: Introduction to PC-Based Data Acquisition and Real-Time Control

What s New In Simulink: Fraser Macmillen

SIMULINK Tutorial. Select File-New-Model from the menu bar of this window. The following window should now appear.

Folders vs. Filters vs. Saved Searches Updated: September 2017

KNX Project Design ETS4: Basic

For additional information, please consult the Read-Me and Help documentation or contact Electro-Voice or Dynacord technical support.

Collaboration in Teams: Simulink Projects Demonstration

Installing the Vocality Network Upgrade Tool (VNUT)

INF 111 / CSE 121. Homework 3: Code Reading

Control Systems Laboratory Manual Hardware and Software Overview. 2 Hardware Equipment. 2.1 Analog Plant Simulator (EE357 Only)

Tutorial: Image Filtering, System Generator Matlab/Simulink

dspace DS1103 Control Workstation Tutorial and DC Motor Speed Control Tutorial

Aplha accelerator for RTW Windows Target. Centre for Applied Cybernetics, UTIA AV CR Prague

SAP Favorites. You can manage your own SAP menu Favorites in multiple ways: 1. From the SAP menu bar click on Favorites to display your options:

Development of a MATLAB Data Acquisition and Control Toolbox for PIC Microcontrollers

Quick Installation Guide: QUARC TM on NI ELVIS III

Manual Eclipse CDT Mac OS Snow Leopard

JEE2600 INTRODUCTION TO DIGITAL LOGIC AND COMPUTER DESIGN. ModelSim Tutorial. Prepared by: Phil Beck 9/8/2008. Voter Function

Microsoft Windows SharePoint Services

14 / 10 / 2013 M3 SOFT V3.0 AC8 NEW FEATURES

FMI Kit for Simulink version by Dassault Systèmes

SystemDesk - EB tresos Studio - TargetLink Workflow Descriptions

AUDIO WEAVER DESIGNER USERS GUIDE

PM4 + Partners Knowledge Articles

LABVIEW HANDOUT 3 CHAPTER 3: THE MATHSCRIPT NODE AND XY GRAPH

OpenSplice Simulink Guide. Release 6.x

HANcoder STM32 Target Getting Started

1 Overview. 1 Overview. Contents. 1.1 Table of Contents Table of Contents

8438/8838 User Manual User Manual of the 8438/8838 MATLAB Embedded Controllers

1.1 The hand written header file

Condensed AFM operating instructions:

VisualSP Help System 2013 Installation Procedure. Rehmani Consulting, Inc.

Introduction to Microchip-SIMULINK Blocksets and MATLAB Plug-in for MPLAB IDE

Online Export Entry. User Guide

Above Threshold Warning of Temperature Data

4PSA VoipNow Core Reseller's Guide. Copyrights Rack-Soft Inc. VoipNow is a registered trademark of Rack-Soft Inc.

Team-Based Collaboration in Simulink

Experiment 6 SIMULINK

OrCad & Spice Tutorial By, Ronak Gandhi Syracuse University

Quick Start Guide for OP4200 Thank you for choosing RT-LAB as your real-time simulation platform.

CODESOFT uses NT security. The network administrator will need to set up the users as needed per the requirements of 21 CFR Part 11.

On-Screen Alerts Site Manager

EE289 Lab Spring 2012

INFORMATION ABOUT DOWNLOADS USING INTERNET BROWSERS

WPS Workbench. user guide. "To help guide you through using the WPS user interface (Workbench) to create, edit and run programs"

ECE-205 Lab 1. Introduction to Simulink and Matlab

TeamViewer Manual Manager

Introduction to Matlab Simulink. Control Systems

DocAve 6 Administrator

Model-Based Design for Safety Critical Automotive Applications

Spartan -6 LX150T Development Kit Hardware Co-Simulation Reference Design User Guide

Working with Images 1 / 12

QuaRC 2.0. Installation Guide. Single-User and Network Installations/License Configuration (Windows, QNX, and Gumstix Verdex)

Running Linear Inverted Pendulum Experiment

Quick Start Guide. Thank you for choosing RT-LAB as your real-time simulation platform.

Ansur Index 2XL. Users Manual. Plug-In

End User Enterprise File Services Guide

Organize your references online...and create automatic bibliographies! 1. What is Refworks? p Logging in to Refworks p.2

Details on the new features, enhancements, and problem fixes of a software release November 22, 2013

WirelessHART Toxic & Combustible Gas Detector P/N: TCD50H1A

Introduction to the MATLAB SIMULINK Program

How to Use the BLESS Plug-in to OSATE

Installation Assistance Windows/Microsoft Updates Updating from Spectra 7.x Upgrading from Spectra 6.x... 7

The Basics SKYPE FOR BUSINESS TIPSHEET WINDOWS. The Main Skype for Business Window

Note: As of right now, Zotero is a program specifically for Mozilla Firefox. It is NOT available in any other browser.

Using the Calyx Point PDS (Point Data Server) with WorkCenter CRM

Installation Instructions for ServicePoint SQL

Lab 0a: Introduction to MATLAB

Creating Dynamic Objects

Experiment 1 Electrical Circuits Simulation using Multisim Electronics Workbench: An Introduction

Display Systems International Software Demo Instructions

The board contains the connector for SWD bus to implement SWD method of programming. Fig. K190 VDD 2 GND 4

The board is powered by the USB connection, so to turn it on or off you plug it in or unplug it, respectively.

Introduction to ARDUINO/SIMULINK

Installation Guide for E&P TANKS TM V3.0

ChipScope Inserter flow. To see the Chipscope added from XPS flow, please skip to page 21. For ChipScope within Planahead, please skip to page 23.

Task Management User Guide

TLL5000 Electronic System Design Base Module

Notifications 4 How to set notifications for a particular item 4. s 4 How to one or more members of the committee 4

Contents. 1 Register and Configure Hi-Gate Add Sensor Node Create a Fresh New Project... 6

SAP NetWeaver 2004s: Learning Map for Development Consultants

AscTec Simulink toolkit

Rapid Prototyping System for Teaching Real-Time Digital Signal Processing

This information applies to versions 2015 or greater of CODESOFT Enterprise Network Licenses.

Reza Afshari Project Proposal Etec 471, Professor Todd Morton October 28, Western Washington University Electronics Engineering Technology

Smart PDU Utility. User Manual

How to use Ejs with Matlab and Simulink for version 3.3

Transcription:

Page 1 sur 5 Simulink to Signal Ranger Converter Quick User Guide As its name indicates, the SimulinkToSR program links Matlab/Simulink files to the Signal Ranger DSP board. Doing so, DSP programming is now possible for almost everyone. First, the user needs Matlab/Real-Time Workshop to transform the Simulink model into C language. Next, the generated files are sent through the SimulinkToSR Converter. It, then, generates a.out file that can be directly implemented on the Signal Ranger board. The required process time ranges from a few seconds to one minute depending on the system complexity. After these steps have been completed, the SimulinkToSR interface allows you to communicate with the DSP board. It is then possible to dynamically modify the parameters of your Simulink system and see its effect right away. SimulinkToSR Converter Demonstration Video Download the demo video that explains how to use the SimulinkToSR Converter software and shows the main functionalities. Simulink Demo Video Implementation Procedure The following text describes the quick steps to implement a Simulink design on Signal Ranger DSP. However, the reading of the user manual is recommended for better comprehension. 1. Configure your Simulink file 2. Design your system under Simulink 3. Predefine Simulink variables in MatLab workspace 4. Export variables 5. Build model with Real-Time Workshop 6. Convert and implement with SimulinkToSR interface 1. Configure Your Simulink File To facilitate the setup of Simulink model, we provide you a simple example that is already configured to build a model with Real- Time Workshop. We suggest you to begin your design from the example located in the "example" directory. It includes 4 files that you can copy and rename as needed (except for grt_rtw_info_hook.m that have to keep the same name): example.mdl: the pre-configured Simulink file example_init.m: the file that initiates the sampling period (Ts) and other user variables example_sim.m: the simulation file (optional) grt_rtw_info_hook.m: Real-Time Workshop needs that file to generate the model in relation to the information specific to the DSP. This file has to be present in the same directory as the Simulink file. 2. Design Your System Under Simulink Use the Simulink help as needed if you are unfamiliar with the software. Consult the list in Annexe B found in user manuel to know which blocks are supported by the current version of the SimulinkToSR converter. Note that input and output amplitudes in Simulink directly represent voltage amplitudes found on the board IOs. Also, take note that the analogue dynamic ranges are normally of ±10 volts for the inputs and ±2 volts for the outputs. All values over these ranges will saturate to their maximal value on the board.

Page 2 sur 5 When the Sample Time parameter is present in block parameters, assign its value to the same as the Fixed step size (Ts). When it is mentioned beside the parameter, its value can alternatively be set to "-1" for inherited. 3. Predefine Simulink Variables in MatLab Workspace Simulink parameters can be assigned a variable set in Matlab Workspace. To ease the process, use a M-file as an initiation file before running the Simulink file. For now, you can look at example_init.m as an example.

Page 3 sur 5 Note that the previously used sampling period "Ts" is also defined in this initiation file. 4. Export Variables With the Signal Ranger DSP board, it is possible to communicate with DSP while the code is running. It is then possible to dynamically read and write parameters called "ExportedGlobal" in your Simulink model. There are three ways to access user variables: Declare "ExportedGlobal" Predefined Variables You can dynamically access the Simulink parameters set to variables in Matlab workspace. However, the variables to be exported must be specified. Indeed, all variables to be accessed in real-time have to be configured "ExportedGlobal" in Simulink. To do so: From your Simulink file, go to Simulation > Simulation Parameters > Advanced > Configure. All variables found in MatLab workspace are enumerated in the Source list. Select the variables you wish to access through the SimulinkToSR interface and press add to table>>. The added variables then appear in Global (tunable) parameters. Set the Storage class of all added variables to "ExportedGlobal" and press OK to confirm.

Page 4 sur 5 This works only if the variable is actually used somewhere as a parameter of your system. Moreover, some variables will be ignored if Simulink does not allow a particular parameter to be dynamic. Use Data Store Blocks The Simulink blocks Data Store Memory, Data Store Read, and Data Store Write allow you to respectively declare, read, and write a data variable. Simply set the RTW Storage Class parameter of the Data Store Memory block to "ExportedGlobal" to give dynamic access through the interface. Use Wire Probes The use of a probe on a wire allows you to read (only) its value through the interface. To do so, right-click on the wire, select "Signal Properties..." and set the RTW Storage Class parameter to "ExportedGlobal". 5. Build Model with Real-Time Workshop To build the model with Real-Time Workshop from you Simulink file, go to Tools > Real-Time Workshop > Build Model (likewise Ctrl+B or Build icon). If no error is detected, the building process appears in the MatLab command window. Warnings are also displayed there.

Page 5 sur 5 A successful build of your Simulink system creates a new directory of name model_grt_rtw (model is your Simulink file name). The files inside that directory will then be used by the SimulinkToSR Converter to implement the system onto a Signal Ranger DSP board. 6. Convert and Implement with SimulinkToSR Interface The SimulinkToSR Converter is responsible for converting the Real-Time model created in Simulink and for implementing the system on the DSP. Open the SimulinkToSR Converter, press the Convert button, and follow the instructions. Within a few seconds, your Simulink Design should be ready to execute. You can now interact with the Signal Ranger DSP board through the SimulinkToSR interface.