Home
Quick user Guide
Contents
1. 30 2 3 1 html 2010 07 06 SOFT DB SimulinkToSR Converter Quick User Guide Page 2 sur 5 Fle Ede view Imtenni aimat Took Hap J DeB i Ge y fion abo BETE m z ami Lees ae ae 1 leap gain _ _ it soy l i an aapi paa ae e n si Cet Quaint a Peta Slag Ck hem ony Pata Slate Bal eo cog Ee 1 Z Te a Caratanti fete re bic Di mr Darmar Daia Gloss rria Core ait ie ee adw_aeready_pole e delay gedal ar pote ete Tr Beale tae ticks Chiceale Tinta ee Inde quater blind Wan Gala 3 pa Tioman gyin T E mrt Pt canmnpirnralir inp palea H Dirk ailt Tarr Faly aa BE E D y 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 http www softdb com a dsp 30 2 3 1 html 2010 07 06 SOFT DB SimulinkToSR Converter Quick User Guide ea D oD a a a Re ie ee ee E Eh ntk ee e s ee ee ee ee ee eee bah ot ee ee ee ee ee ee foe ee ee See eee ee eae ee a ee ees eee ee sss ose ses Den iteco ela OR SRA Be aimn v z e
2. Design should be ready to execute You can now interact with the Signal Ranger DSP board through the SimulinkToSR interface http www softdb com a dsp 30 2 3 1 html 2010 07 06
3. SOFT DB SimulinkToSR Converter Quick User Guide Page 1 sur 5 The MathWorks p Simulink to Signal Ranger Simulink Converter Quick User Guide As its name indicates the SimulinkKToSR 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 SimulinkKToSR 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 SimulinkKTOoSR Converter software and shows the main functionalities ary lt a 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 Configure your Simulink file Design your system under Simulink Predefine Simulink variables in MatLab workspace Export variables Build m
4. e 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 gt Simulation Parameters gt Advanced gt Configure All variables found in MatLab workspace are enumerated in the Source ist Select the variables you wish to access through the SimulinkToSR interface and press add to table gt gt The added variables then appear in Global tunable parameters Set the Storage class of all added variables to ExportedGlobal and press OK to confirm http www softdb com a dsp 30 2 3 1 html 2010 07 06 SOFT DB SimulinkToSR Converter Quick User Guide Page 4 sur 5 Model Parameter Configuration example EAF Descriptio Dedting the giebal Chunatle parameter dorgen modal Taze Auramaa aSeck 1 the simulation by prowideng the abhi bo borne paramediem during ecsculion and Z ihe gecenled code by enabling scce bo paramebact by other moduler Source list Global Gunables parameters r MATLAB workspace Name T AAE 1 DCamp ie hare P 2 adr pole 1 Dc arp E 3 adr zero bi sha zN 4 colima gi EXPotedGlobal J Exportad labal rel ExploatedGlobial ExportadGlobal 5 loop_gain ExpotedGlobal we maig ExPostedGlabal sn m ExportedGlobal os SimulinkGlabal jute sn ExportedGlobal badi OK Cancel Hem Apply This w
5. iidople initio ETT EET LETT TECETLEETL EC CEEE EE EL CEDE CEE LE OLERELEREE GLEBE RETEL GEEEEE CEL ELE ETETE EEE ERE File het initiates thea user defined variables weed ini the eranpie nal gt Fimwiink file Fe ego ng Sie ee le ro Be eS Be ee ae i eS ee ee i a ne sl lS Se i ie eS nee ie a gin co i Be Se eaten nc ge By Sottdk jure both 2004 Ty Ee To di Jy Ip Se Te Be Pe Dy Dr E Ea ia ee De ee a De Be Te Ee Be y Ea ile e Pe Be De Ee a a Be Re Ere Iy aoi Ee Tie P D Be Br a a dd Er Ee ToT e Te T De Te Ea Ta d Ta as Te Be Te t SELECT HERE THE SAHFLIWG amp PERIOD that should be usei tar the Cixad abep siza f parameters set in STRUCTWK gt Siaulation gt Sinulation Patamecers gt Solver amp and that shouid also be used Bor every block sample tine H 4 Select one of the restrained value o Beli 253 220 921 T sH7 21700 ti Besalting Sinulink anpling period s conde n o a Taaa ti tet hobo da Lieto titi tt tee hh bot hte ThE b Pte CLE LLCS Pb Phe tab a the hk ba hth bt SETS SESS TESTS beCinitions af variables used in Simulink file Pep bi eet oe ehhh ott loop gain I4 t GeTenle loopback gain on oe fire AIE E aine Le k frequency jhexce Cor the Binusoid aine amp L t Deteult sinmmscig aapiitade volta Tint pEr Cound iy Tat sine 2 Pefonlt sinmdagld period saaples repack Teal pulse amp 1 t Default pulse oeplitude voltsi pulses per a Sine per 7 Default pulse period samples frequency Hziely Ts pul
6. odel with Real Time Workshop Convert and implement with SimulinkToSR interface PP ae a 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 e example mdl the pre configured Simulink file e example_init m the file that initiates the sampling period Ts and other user variables e example_sim m the simulation file optional e 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 SimulinkKTOSR 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 http www softdb com a dsp
7. orks 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 1 poles 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 gt Real Time Workshop gt 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 Command Window a x EEF Generating code into build directory exemple grt rtu ra Warning Reducing cun time parameter A of block exenplerDIisacrete fero Pole Wathing Reducing cun time parameter C of block exanple Diserete Zero Pole Watning Reducing Eun time parameter D of block exanple Discrete Zero Pole 88 Invoking Target Language Compiler on exanple
8. rts tho r exanple get rtwyexanple roa Ci MATLABSpS rtw c qrt grt tlc 0 exam Fy Loading THU TLC funecion Libraries 88 Initial pass through model to cache user defined code Caching model source code ef Writing header file exanple h 78 Writing header Eile exanpl e_types h 78 Writing source Cile eX enuple c Writing header file example private h eff Writing header file rtmodel h Sss Writing source Cile example data c 92 TLC code generation conplete evanple wk which ia generated Crom C MATLABODS etuyc grtigrt Lee tmft ia up ef Succesatul completion of Real Time Workshop build procedure for model exam http www softdb com a dsp 30 2 3 1 html 2010 07 06 SOFT DB SimulinkToSR Converter Quick User Guide 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 27 8th Te eign Maes Ee EE j oy e a irs Convert ETW le path n stags rianih pill aenn i Open the SimulinkToSR Converter press the Convert button and follow the instructions Within a few seconds your Simulink
9. se p pulse width round pulse per 2 74 D fault puise width samples DotgCyclesputse width pul atrix l 1 l z 3 4 Aatrix 1 by 2 Cluinn selechorcsl amp befeule coluinn felecrion bow S6 1eebors2 Defsult cow selection gt PRESS CORPEYSSLOL peranetrers extengzive fore aiy Zero 1 03 Default zero of Phase aAdvremce Detawlt Pole Of Fhase Advente Petwle dero on Frase Delay betoule Pole of Faase Delty adv pole 1 0 delay zero 1 0 delay pole 1 0 x Phase cenptnaator Pat ige ters Compact Porm oith poles oer at poles 1 0 1 0 4 Default Poles of Phase Atvesce and Phase Dele ecas 1 0 1 07 Default Zeros oF Phase Advance and Fhase Dele Phase COEpensator parameters Compact Eoto with numerator end d enumecator mum i 0 1 0 4 Defeule Poiss of Presse Agvatice and Frese heler en L 0 1 0 t Default Zeros of Phase Advance and Phase Pelay ha x T z5 scrii Tina colts Note that the previously used sampling period Ts is also defined in this initiation file 4 Export Variables Page 3 sur 5 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 workspac
Download Pdf Manuals
Related Search
Related Contents
DP163, DP163G および DP163Y型パイロット型減圧弁 Terminal User Guide consejo - Bernina BEDIENUNGSANLEITUNG T'nB UCEPATCH mobile phone case follow MD-2600 Untitled Sommaire - Fujitsu Copyright © All rights reserved.
Failed to retrieve file