Home
UEISim User Manual
Contents
1. Click on the option Real Time Workshop then on Interface Change the interface to External mode set the Transport layer to tcpip and enter the IP address of the UEISim in the MEX file arguments text field This is a string argument and the IP address must be typed between quotes Configuration Parameters ueisim Configuration Active Select Software environment Target function library C88 C30 ANSI Utility function generation Auto Data Import Export Optimization H Diagnostics Hardware Implementation Model Referencing MAT file variable name modifier t l Real Time Workshop i Comments Data exchange Verification Interface External mode Host T arget interface Transport layer tepip v MEX file name ext c MEX file arguments 32 158 100 2 Memory management C Static memory allocation vj gt Click on OK and build the model again Logon the UEISim and start the simulation with the command line option w tmp ueisim w 16 UEISim User Manual y x United Flectronic Industries The High Performance Alternative This option tells the model to wait for commands received over the network before starting execution ueisim File Edit view Simulation Format Tools Help D c id e 458a es Connect to target Simulation stop time Simulation mode UEISIM Analog Output UEISIM Analog I
2. To look at the content of the MAT file download the file from the UEISIM using FTP or SCP and open it with Matlab You can download the file directly from Matlab s command line with the following commands f ftp 192 168 100 2 root root cd f tmp binary f mget f untitled mat rt tout is the time of each step rt yout is the data sent to the Out block 19 UEISim User Manual a United Electronic b d Industries The High Performance Alternative MATLAB 7 5 0 R2007b PIE Ele Edit view Graphics Debug Desktop Window Help Dj Gil E O Comer msaren S db vides Z How to Add 7 What s New nt f M kspace PD 2 l4 Array Editor rt yout TEREX CELADI E Stacks Base i w We 0 wax ue Min lt 1000x1 double gt 0 0100 1000x1 uint32 gt 20 UEISim User Manual United Electronic Industries The High Performance Alternative 5 UEISIM Blockset Wi Simulink Library Browser ct File Edit View Help B Enter search term 4 Libraries Library UEISim Library Search Results none EE el Simscape t I Simulink 3D Animation CAN ICP_IEPE E Simulink Control Design l Ni Simulink Design Optimiza LVDT S nde Simulink Extras i M Simulink Verification and ws UEISIMAnslog i UEISIM Analog Ansa nat t E Stateflow ETE Input ar Output RB System Identification Tool UEISIM Counter cM UEISIM Digital Input zan
3. 18 5 UEISIM OCIS ssossiccccaccosscsssssssnxencacceignstaaudeesseotsessdenstaasnonteecbiartonaenets 21 Dele Analog Input block oio eh beste ote End siaina aniisi aeisi 21 5 2 Analog OUtP t sissies aeee E E aea aiia aiia 22 Dede Digital Tui E E E R G 23 V EP o Reo cet E 24 en duode cm 26 SOME Le UIloiuue ci oce 27 s PNE P mos 29 S EMEN INICIO ER 29 5 7 2 LVDT Simm ata spriin E EE E 31 TONES 0dno 20 c0 33 5 8 1 synchro Besolvyer MPU 52e dpa b Does Pb p tee Eo a aE aE DO dba bedn 33 5 8 2 synchro Resolver CIUtpUE iaionei opi eria petis ede ta eimi ode tote dini aet eoim oda 34 5 9 CAN bus COMMUNICATION sessenta es Ee e AEE E E REESS 36 AS CAN Setup LOC ioo P edt oi ti tries iasi aeii 36 59 2 CAN Send Block a ounce ion iin tte usd iive M DU EIU UH REM CA DEM TEE 37 5 9 3 CAN Recerve BIOGR du iniae a AA EREEREER ES 38 594 Utility DIOCES iii eee RR e b ipi d D Tee eater entre retire 39 594 1 CAN dn M siena 40 5 942 CAN unpack LOC dep 4 5 9 5 CAN cud m e EE eee 41 UEISim User Manual pw United Electronic Industries The High Performance Alternative 1 Introduction UEISim turns a PowerDNx Ethernet data acquisition module into a target on which you can run Simulink models and read write physical I Os The UEISim host software uses the Simulink add on Real time Workshop to convert your Simulink model to C code and then cross compiles it into an executable that runs directl
4. D eag Blg 20 hoo Nemal UEISIM Pulse Switch1 Data Type Conversion UEISIM Digital Output Generator Constant3 100 5 5 Counter Input The Counter Input block acquires the current count of the counters specified in the channel list Each counter is available as a separate output The data type is uint32 The value read depends on the counter operting mode e Count Events Reads the number of rising edges detected on the counter input since the model started e Pulse Width The delay between the last rising and falling edges detected on the counter input Delay is returned in 66MHz clock ticks divide the value by 66000000 0 to convert to seconds e Period The delay between the two last rising edges detected on the counter input Delay is returned in 66MHz clock ticks divide the value by 66000000 0 to convert to seconds e Quadrature Reads the position measured by a quadrature encoder 26 UEISim User Manual y x United Flectronic Industries The High Performance Alternative 7 Source Block Parameters UEISIM Counter Input Counter Input Block mask link Configure counter layers such as the CT 601 and QUAD 604 Parameters layer 0 ports 0 mode Count Events source v C inverted input Sample time 01 e layer The Id of the digital output layer associated with this block layer Ids start at 0 with the top layer ports Array of ports to read from e mod
5. Input sen UEISIM Digital t Ogu aoe cruce Output i Synchro Resolver E E Video and Image Proces 5 1 Analog Input block The Analog Input block acquires data from the channels specified in the channel list Each channel measurement is available as a separate output The data type is double 21 UEISim User Manual y x United Electronic Industries The High Performance Alternative Source Block Parameters UEISIM Analog Input S Function mask link Parameters layer p Minimum Range 10 Maximum Range 10 Channel list 0 Input Mode Single Ended Sample Time 0 01 e layer The Id of the analog input layer associated with this block layer Ids start at O with the top layer Minimum Range The minimum voltage expected at the input Maximum Range The maximum voltage expected at the input Channel list Array of channels to acquire from Input Mode Single Ended or Differential Sample Time The rate at which the block executes during simulation it also sets the hardware ADC clock 5 2 Analog Output The Analog Output block updates the voltage generated by the channels specified in the channel list Each channel update is specified as a separate input The data type is double 22 UEISim User Manual y x United Electronic Industries The High Performance Alternative Sink Block Parameters UEISIM Analog Output S Function mask li
6. The data payload is specified using the double data type which is big enough to carry the 64 bits required for a full payload 8 bytes maximum Refer to section about packing unpacking data into payload below 5 9 3 CAN Receive block Receive a group of CAN frames from one CAN port You can create multiple instance of this block to receive multiple group of frames at different rate 38 UEISim User Manual y x United Electronic Industries The High Performance Alternative L1 Source Block Parameters UEISIM CAN Receive ueisim can receive mask link Receive CAN frames Parameters port arbitration ids 5 sampletime 10 01 e layer The Id of the CAN layer associated with this block layer Ids start at 0 with the top layer port The Id of the port to receive from port Ids start at 0 arbitration ids A list of arbitration IDs to receive e sample time The rate at which the block executes during simulation The block outputs the value of the data payload of each frame The data payload is specified using the double data type which is big enough to carry the 64 bits required for a full payload 8 bytes maximum Refer to section about packing unpacking data into payload below 5 9 4 Utility blocks Utility blocks are used to pack and unpack data stored in the payload of CAN frames that are sent or received You can specify the data types and position of multiple signals within
7. file 44 Writing header file Writing source file TLC code generation rtmodel h ueisim data c rt nonfinite h rt nonfinite c complete UEISim User Manual Evaluating PostCodeGenCommand specified in the model Adding e uei_svn software powerdna 3326E1 1 X UEIPAC SIMULI 1 to source and include paths Makefil Processing Templat e uei_svn software powerdna 3 3 x UEIPAC Simulink_rtw ueipac tmf ueisim mk which is generated from e uei_svn software powerdna 3 3 x UEIPAC Simulink_rtw ueipac tmf is up to date Building ueisim ueisim bat lt lots of compiler output Created executable ueis gt im Downloading ueisim to UEIPAC at 192 168 15 200 Downloaded ueisim gt gt The simulation executable is now ready to be executed in the tmp directory on the UEISim Log on the UEISim using the serial port console or Telnet and run the simulation tmp ueisim StepSize 0 010000 s Model 201 Option 100 Model 308 Option 1 Model 207 Option 1 Model 205 Option 1 Model 404 Option 1 starting the model created ueisim mat 15 UEISim User Manual y x United Flectronic Industries The High Performance Alternative 4 4 Connecting to UElSim in external mode Simulink s external mode allows you to remotely monitor a simulation running on the UEISim Select the menu option Simulation Configuration Parameters
8. the endianness of the signals to pack e Start bits A cell array containing the index of the first bit of the signals to pack e Bit length A cell array containing the number of bits of the signals to pack 40 UEISim User Manual y x United Electronic Industries The High Performance Alternative The block displays an input port for each signal and outputs one double value containing the packed signals The output value is ready to be connected to the CAN Send block 5 9 4 3 CAN unpack block Unpack one CAN message into multiple signals Signals are decoded using data type and position of bits in message Function Block Parameters UEISIM CAN Unpack signals ueisim can unpack mask link Unpack one CAN message into multiple signals Signals are decoded using data type and position of bits in message Parameters data types cell array IK int32 single endianness cell array intel intel start bits cell array 0 32 lengths cell array 32 32 e Data types A cell array containing the data types of the signals to unpack from the message Endianness A cell array containing the endianness of the signals to unpack Start bits A cell array containing the index of the first bit of the signals to unpack e Bit length A cell array containing the number of bits of the signals to unpack The block displays one input port to connect a double value coming from the CAN Re
9. N communication blocks give access to the CAN 503 CAN ports The configuration of each port is done using an independent setup block Sending and receiving CAN frames to from a port is done using a send or receive block Simulink Library Browser File Edit View Help D gE d Utilities ueisim lib CAN Lltilities GAY Simulink PA Wi Data Acquisition Toolbox gs L7 Real Time Workshop Wi Real Time Workshop Embedded Coder 5 UEISIM CAN Receive li Simulink Extras Wi stateflow dr on UEISIM CAN Send Wi UEISim Library 3 q conten UEISIM CAN Setup Utilities Wy Virtual Reality Toolbox WY xPC Target 5 9 1 CAN Setup block Configure communication settings on a given CAN port There must be one setup block for each port used in the model 36 UEISim User Manual y x United Flectronic Industries The High Performance Alternative Block Parameters UEISIM CAN Setup ueisim_can_setup mask link Configure ports on CAN layers such as the CAN 503 Parameters e port 0 speed 250 kBps frame format Standard 11 bit initialization command termination command i e layer The Id of the CAN layer associated with this block layer Ids start at O with the top layer port The Id of the port to configure port Ids start at 0 speed The speed in bits s used on the CAN bus connected to this port frame format The type of frame sent or received Standard
10. Signals 0 InlineParameters 0 lBlockOutputs 1 aRollThreshold 5 aZerolnternalMemoryAtStartup 1 a ZeroExternalMemoryAtStartup 1 alnitFltsAndDblsToZero 1 aGenerateReport 0 aGenCodeOnly 0 aRTWVerbos alncludeHyperlinkInReport 0 aLaunchReport 0 1 aGenerateTraceInfo 0 aForceParamTrailComments 0 aGenerateComments 1 algnoreCustomStorageClasses 1 alncHierarchyInIds 0 aMaxRTWIdLen 31 aShowl a a EliminatedStatements 0 IncDataTypeInIds 0 InsertBlockDesc 0 aSimulinkBlockComments 1 aInlinedPrmAccess Literals aTargetFconLib ansi tfl table tmw mat alsPILTarget 0 LogVarNameModifier rt aGenerateFullHeader 1 ExtMode 0 ExtModeStaticAl ExtModeTesting 0 ExtModeStaticA ExtModeTransport 0 RIWCAPISignals 0 RTWCAPIParams 0 oc 0 locSize 1000000 aGenerateASA P2 0 UEIPACIPAddress 192 168 15 200 aDownloadToUEIPAC 1 a aGenerateTraceInfo 0 p10000 Loading TLC function libraries Initial pass through model to cach user defined cod Caching model source code UEISim User Manual 14 United Electronic Industries The High Performance Alternative Writing header fil Writing header fil ueisim types h ueisim h Writing source file Writing header fil ueisim c ueisim private h Writing header file Writing source
11. UEISIM Setup E diniled License Agreement b 4 Electr onic Please review the license terms before installing UEISIM Industries Press Page Down to see the rest of the agreement ATTENTION USE OF THE SOFTWARE IS SUBJECT TO THE UEI SOFTWARE LICENSE TERMS SET FORTH BELOW USING THE SOFTWARE INDICATES YOUR ACCEPTANCE OF THESE LICENSE TERMS IF YOU DO NOT ACCEPT THESE LICENSE TERMS YOU MAY RETURN THE SOFTWARE FOR A FULL REFUND IF THE SOFTWARE IS BUNDLED WITH ANOTHER PRODUCT YOU MAY RETURN THE ENTIRE UNUSED PRODUCT FOR A FULL REFUND UEI SOFTWARE LICENSE TERMS If you accept the terms of the agreement click I Agree to continue You must accept the agreement to install UEISIM Nullsoft Install System v2 37 Read the license agreement and click on I Agree if you accept the terms of the agreement United Electronic Industries The High Performance Alternative UEISIM Setup Aa United Electronic Industries UEISim User Manual Choose Install Location Choose the Folder in which to install LIEISIM Setup will install UEISIM in the Following Folder To install in a different Folder click Browse and select another Folder Click Next to continue Destination Folder C Program Files UET UEISIM Space required 243 7MB Space available 1 0GB Select the location on your hard drive where you wish to install the software then click Install You need to have at least 250MB of free spac
12. UEISim User Manual a United Electronic Industries The High Performance Alternative UEISim User Manual 2 0 July 2009 Edition Copyright 2009 United Electronic Industries Inc All rights reserved No part of this publication may be reproduced stored in a retrieval system or transmitted in any form by any means electronic mechanical by photocopying recording or otherwise without prior written permission UEISim User Manual a United Electronic Industries The High Performance Alternative Table of contents D Oo LOTE CO i P E 3 2 Software Installation e soescossesooesessoesessoescsssescesssssoesessosscesossssssesossse 3 2A EE ili ERE 3 2 2 Install UEISim Software Tor Windows wiesiscssssscssasovsscansesvssnstdoandsssnsessuncesvressavense 3 2 3 Install UEISim Software for TIS ausus prier ob ri Pur ERN LN EM MEER 7 3 Configuring the DESI iret ehe riYPRIR eor n kIR Fb PEERS EF SR TAR EE OR EA FEY RE PUE 7 3 1 Connecting through the serial port sese 7 3 2 Configuring the IP adUP Soudan P qub FOU nd a a e das Ma du M MIR M TE 8 4 Using UEISim add on from MATLAB Simulink 9 AMO OS 2 VET ke ccc 9 4 2 Convert your modelers arrana a a A REE ES 10 4 3 Create an executable from the model peret trssdi scia tent acesd ceu iuste deni ida 12 44 Connecting to UEISim in external Tode eerte eterni eer epe 16 45 Logsmg Data to filesinin iai iaia
13. a single CAN frame Each signal is specified using four parameters e data type the type of the signal possible values are boolean int8 uint8 int16 uint16 int32 uint32 single or double endianness the endianness of the signal possible values are intel or motorola e start bit the position of the first bit of the signal in the 8 bytes data payload of the CAN frame 39 UEISim User Manual y x United Flectronic Industries The High Performance Alternative e bit length the number of bits used to represent the signal in the 8 bytes data payload For example you could specify that a CAN frame contains a 16 bit integer starting at bit 0 another 16 bit integer coded in big endian format starting at bit 16 and a single precision floating point starting at bit 32 5 9 4 1 CAN pack block Pack multiple signals into one CAN message Signals are encoded using data type and position of bits in message Function Block Parameters UEISIM CAN Pack signals ueisim can pack mask link Pack multiple signals into one CAN message Signals are encoded using data type and position of bits in message Parameters data types cell array It int32 single endianness cell array intel intel start bits cell array 0 32 lengths cell array 32 32 e Data types A cell array containing the data types of the signals to pack in the message e Endianness A cell array containing
14. ceive block It also displays an output port for each signal to unpack from the CAN message 5 9 5 CAN examples The following example configures two ports on the same CAN 503 send frames with Ids 102 and 258 out of port 0 and receives frames with Ids 102 and 258 from port 1 41 UEISim User Manual United Flectronic Industries The High Performance Alternative If port O and port1 are connected to the same CAN bus you will receive what you send i can_loopback File Edit View Simulation Format Tools Help Dc Ee e eo d oc foo Noma mumsmS9cma htam UEISIM CAN Setup UEISIM CAN Setup device 4 port 1 device 4 porto UEISIM CAN Setup UEISIM CAN Setup1 UEISIM CAN Pack UEISIM CAN Pack signals 402 402 UEISIM CAN Unpack Hie Generatori UEISIM CAN Send UEISIM CAN Receive UEISIM CAN Unpack signals device 4 port 1 device 4 portO UEISIM CAN Pack 258 258 UEISIM CAN Unpack UEISIM CAN Pack signals1 UEISIM CAN Send UEISIM CAN Receive UEISIM CAN Unpack signals 1100 42
15. dware ADC clock 5 8 2 Synchro Resolver Output The data type of the value written to each configured channel is double 34 UEISim User Manual a United Flectronic b d Industries The High Performance Alternative We Sink Block Parameters UEISIM Synchro Resolver Simulation ueisim aosyncres write mask link Configure and read data from Synchro Resolver channels Parameters layer 2 Mode vector 0 for Synchro 1 for Resolver 0 Excitation Voltage vector RMS 5 0 Excitation Frequency vector Hz 400 0 External Excitation vector 0 for disabled 1 for enabled w Channel vector 0 Sample Time 0 01 e layer The Id of the analog input layer associated with this block layer Ids start at O with the top left layer e Mode vector Specifies whether each channel is simulating a Synchro or a Resolver e Excitation Voltage vector The excitation voltage used to power Synchro Resolver s simulated by each channel e Excitation Frequency vector The excitation frequency used to power Synchro Resolver s simulated by each channel e External Excitation vector Specifies whether channel s provide excitation to Synchro Resolver s or whether excitation is supplied externally e Channel vector Array of channels to simulate from 35 UEISim User Manual a United Flectronic Industries The High Performance Alternative e Sample Time The rate at which the block executes 5 9 CAN bus communication CA
16. e UEISIM Setup Aa United Flectronic Industries Extract ccl exe 67 Installing Please wait while UEISIM is being installed iin 4d Once the files are installed the UEISIM Matlab Selector applet will pop up letting you select which version of Matlab Simulink you wish to use with your UEISIM UElISim User Manual a United Flectronic Industries The High Performance Alternative UEISIM Matlab Selector 7 5 C Program Files MATLAB R2007b 7 6 C Program Files MATLAB SR2008a Select the version of Matlab you wish to use with your UEISIM Cancel After the installation is done you can run that applet again if you want to configure another version of Matlab Simulink to work with your UEISIM You can run the UEISIM Matlab selector using the shortcut in the Start Programs UEI UEISIM menu amp UEISIM Setup Amite Completing the UEISIM Setup Eletir tlit wizard Industries The High Performance Alternative UEISIM has been installed on your computer Click Finish to close this wizard Once all the files are installed click on Finish to exit the installer UEISim User Manual pw United Electronic Industries The High Performance Alternative Important Note In a few rare occasions we encountered a problem where the Matlab s ActiveX automation server was not properly registered which prevented our UEISIM Matlab Selector applet to work W
17. e 3l UEISim User Manual y x United Flectronic Industries The High Performance Alternative Em MP a fc Sink Block Parameters UEISIM LVDT Simulation i ueisim ailvdt read mask link Configure and read data from LVDT channels Parameters layer D Simulated LVDT Sensitivity vector mV V disp 1000 0 Wiring Scheme vector 4 for four wires 5 for five wires 4 Excitation Voltage vector RMS 5 0 Excitation Frequency vector Hz 400 0 Channel vector 0 Sample Time 0 01 e layer The Id of the analog input layer associated with this block layer Ids start at O with the top left layer e Simulated LVDT Sensitivity vector The sensitivity of the LVDT s simulated by each channel e Wiring Scheme vector The wiring scheme 4 or 5 wires used to connect the LVDT s simulated by each channel e Excitation Voltage vector The excitation voltage used to power LVDT s simulated by each channel e Excitation Frequency vector The excitation frequency used to power LVDT s simulated by each channel e Channel vector Array of channels to simulate from 32 UEISim User Manual a United Flectronic b d Industries The High Performance Alternative e Sample Time The rate at which the block executes 5 8 Synchro Resolver Use the Synchro Resolver blocks to acquire data from Synchros or Resolvers and also simulate voltage emitted by real Synchros or Resolvers Those sensors are on
18. e The operation mode Possible values are Count Events Measure Pulse width Measure period and Quadrature Encoder e source The source of the input signal Possible values are Internal Clock and External Pin e inverted input the input signal is inverted when this is checked Sample Time The rate at which the block executes during simulation it also sets the hardware clock 5 6 ICP IEPE sensors Use the ICP IEPE block to acquire data from ICP or IEPE sensors Those sensors are only supported by analog input hardware that can provide excitation current to power the sensors for example the AI 211 The data type of the value returned for each configured channel is double 27 y x United Flectronic b d Industries The High Performance Alternative UEISim User Manual Source Block Parameters UEISIM ICP TEPE Input ueisim_aiicp_read mask link Configure and read data from ICP TEPE channels Parameters layer Minimum Range vector a 10 Maximum Range vector g 10 Sensor Sensitivity vector mV g 1000 0 Excitation Current vector mA 2 Coupling vector 0 for AC 1 for DC 0 Low Pass Filter vector 0 for disabled 1 for enabled 0 Channel vector 0 Sample Time 0 01 e layer The Id of the analog input layer associated with this block layer Ids start at O with the top left layer e Minimum Range vector The minimum value exp
19. e Alternative U Boot 1 1 4 Jan 10 2006 19 20 03 CPU PC5200 v1 2 at 396 MHz Bus 132 MHz IPB 66 MHz PCI 33 MHz Board UEI PowerDNA MPC5200 Layer L2G 85 kHz ready DRAM 128 MB Reserving 349k for U Boot at 07fa8000 FLASH 4 MB Tni serial Out serial Err serial Net FEC ETHERNET Type run flash_nfs to mount root filesystem over NFS Hit any key to stop autoboot 5 Booting image at ffc10000 Image Name Linux 2 6 16 1 Created 2006 11 10 16 07 06 UTC Image Type PowerPC Linux Kernel Image gzip compressed Data Size 917636 Bytes 896 1 kB Load Address 00000000 Entry Point 00000000 Verifying Checksum OK Uncompressing Kernel Image OK id mach done lt lots of kernel messages gt BusyBox v1 2 2 2006 11 03 19 16 0000 Built in shell ash Enter help for a list of built in commands You can now navigate the file system and enter standard Linux commands such as ls ps cd 3 2 Configuring the IP address Your UEISIM cube is configured at the factory with the IP address 192 168 100 2 to be part of a private network You can change the IP address for the current session using the command setip lt new IP address gt UEISim User Manual a United Flectronic b d Industries The High Performance Alternative 4 Using UElSim add on from MATLAB Simulink 4 1 Configuration Start MATLAB then click on the Start button at the bottom l
20. ected at the input of each channel e Maximum Range vector The maximum value expected at the input of each channel 28 UEISim User Manual a United Electronic Industries The High Performance Alternative e Sensor Sensitivity vector The sensitivity of the sensor s connected to each channel e Excitation Current vector The excitation current used to power sensor s connected to each channel e Coupling vector The coupling AC or DC used on each channel Low Pass Filter vector Turns on or off the anti aliasing low pass filter on each channel e Channel vector Array of channels to acquire from e Sample Time The rate at which the block executes during simulation it also sets the hardware ADC clock 5 7 LVDT Use the LVDT blocks to acquire data from LVDT sensors and also simulate voltage emitted by real LVDT sensors Those sensors are only supported by analog input hardware that can provide excitation current to power the LVDTs for example the AI 254 5 7 1 LVDT Input The data type of the value returned for each configured channel is double 29 UEISim User Manual y x United Electronic b d Industries The High Performance Alternative We Source Block Parameters UEISIM LVDT Input ueisim_ailvdt_read mask link Configure and read data from LVDT channels Parameters layer Hi Minimum Range vector displacement unit 10 Maximum Range vector displacement unit Sensor Sensi
21. eft corner of MATLAB s window MATLAB 7 5 0 R2007b TAR File Edit View Graphics Debug Desktop Window Help um t e amp Be Fe v s L r F o9 C Documents and Settings Frederic My Documents MATLAB vi Ld 5 Shortcuts 7 How to Add 7 What s New Current Directory KOLS Lo mit P Command Window mage NIC NES e T mi w fg gt Hu B Q new to MATLAB Watch this Video see Demos or read Getting Started x Mame a Value Iss 4f MATLAB A Toolboxes J Wb Library Browser EH Links and Targets d Help d a Demos Product Page Web sip Desktop Tools Embedded Target for UEISim J lh LEISim Target Preferences web gt Real Time Workshop gt Product Page web By Preferences BH Real Time Workshop Embedded Coder i Find Files Wi Stateflow gt m Help ji v Demos a Shortcuts Select Simulink Embedded Target for UEISim UElISim Target Preferences P utisiM Target Preferences Setup GNUToolchainPrefix powerpc 604 linux gnu UEISIM_ROOT c program files uei ueisim Reset to Default UEISim User Manual y x United Flectronic Industries The High Performance Alternative GNUToolchainPrefix specifies the name of the cross compiling tools used to build a model to a binary that can run on the UEISIM The default value is correct don t change it unless told by UEI technical support UEISIM_ROOT The location of the folder where you
22. hen that happens the UEISIM Matlab Selector applet will pop up an error message and you will need to manually configure Matlab s path Start Matlab and at the prompt enter the following commands change the path to the location you selected during the installation addpath c program files uei ueisim simulink savepath 2 3 Install UEISim Software for Linux Insert the UEISim CDROM in your CD drive You might need to mount it if your Linux distribution doesn t detect the CDROM automatically To mount it type mount dev cdrom mnt cdrom cd mnt cdrom bash install sh 3 Configuring the UEISim The IP address must be configured using the serial port 3 1 Connecting through the serial port Connect the serial cable to the serial port on the UEISIM cube and the serial port on your PC You will need a serial communication program e Windows ucon MTTTY or HyperTerminal e Linux minicom or cu part of the uucp package The PowerDNA I O module uses the serial port settings 57600 bits s 8 data bits 1 stop bit and no parity Run your serial terminal program and configure the serial communication settings accordingly Connect the DC output of the power supply 24VDC to the Power In connector on the PowerDNA cube and connect the AC input on the power supply to an AC power source You should see the following message on your screen UEISim User Manual United Electronic Industries The High Performanc
23. imulation Format Tools Help Du CP YO m p e fioo Normal UEISIM Analog Output UEISIM Analog Output UEISIM Analog Input UEISIM Analog Input 11 UEISim User Manual a United Flectronic Industries The High Performance Alternative Double click on the Analog Input and Output blocks to configure the parameters see chapter 5 for details on the parameters for each of the UEISIM block 4 3 Create an executable from the model Select the menu option Simulation Configuration Parameters Click on the Solver option on the left pane and make sure the solver type is set to Fixed step Click on the Real Time Workshop option then on Browse to change the system target file a System target file browser ueisim System target file Description grt tlc Visual C C Project Makela grt malloc tlc Generic Real Time Target grt malloc tlc Visual C C Project Makei rsim tlc Rapid Simulation Target rtwsfcn tlc S function Target tornado tlc Tornado VxWorks Real Ti ueisim tlc UEISim Real Time Target 3 xpctarget tlc xPC Target xpctargetert tlc xPC Target ERT lt lll gt Full name amp uei svn softwarespowerdna 3 3 XLI EIPACAUEISim ueisim tlc Template make file ueisim tmf Make command make rtw Select the UEISim target and click OK Click on UEISim options 12 UEISim User Manual y x United Flectronic Industries The High Performa
24. installed the UEISIM software Make sure it matches the folder you specifed while running the UEISM Software installer 4 2 Convert your model Let s start with an existing model that process some input signal and view the output on a scope ueisim File Edit View Simulation Format Tools Help Dc zi E amp hoo Normal In order to test our model with a real signal let s use the UEISim analog input and output blocks The UEISim I O blocks are located in the Simulink library 10 UEISim User Manual y x United Electronic Industries The High Performance Alternative r Wi Simulink Library Browser fE File Edit View Help Enter search term 4 Library UEISim Library Search Results none A Simscape l M Simulink 3D Animation CAN ICP_IEPE Wi Simulink Control Design E Simulink Design Optimiza LVDT Synchro 22 Simulink Extras imos t M Simulink Verification and uem UEISIM Analog UEISIM Analog Anscz nat t E Stateflow ETE Input maar Output BR System Identification Tool EiSim Libran UEISIM Counter zw UEISIM Digital a VEISim Library input a rout iipit sen UEISIM Digital t Qgai Oups cevced Output Synchro Resolver E EET Video and Image Proces Replace the input sine wave block with an Analog Input block and add an Analog Output block to generate the result as well as display it on the scope ueisim m 5 x Ele Edit View S
25. ly supported by analog input hardware that can provide excitation current to power the Synchro Resolvers for example the AI 255 5 8 1 Synchro Resolver Input The data type of the value returned for each configured channel is double Wi Source Block Parameters UEISIM Synchro Resolver ial ueisim aisyncres read mask link Configure and read data from Synchro Resolver channels Parameters Mode vector 0 for Synchro 1 for Resolver 0 Excitation Voltage vector RMS 5 0 Excitation Frequency vector Hz 400 0 External Excitation vector 0 for disabled 1 for enabled 0 Channel vector 0 Sample Time 33 EUN UEISim User Manual United Electronic b d Industries The High Performance Alternative layer The Id of the analog input layer associated with this block layer Ids start at O with the top left layer Mode vector Specifies whether a Synchro or a Resolver is connected to each channel Excitation Voltage vector The excitation voltage used to power Synchro Resolvers s connected to each channel Excitation Frequency vector The excitation frequency used to power Synchro Resolver s connected to each channel External Excitation vector Specifies whether channel s provide excitation to Synchro Resolver s or whether excitation is supplied externally Channel vector Array of channels to acquire from Sample Time The rate at which the block executes during simulation it also sets the har
26. nce Alternative Configuration Parameters ueisim Configuration Active Select Download to UEISim Data Import Export UEISim IP address 192 168 100 2 Optimization H Diagnostics Hardware Implementation Model Referencing Real Time Workshop t Comments v T V e Download to UEISim Check this option to automatically download the simulation executable to the UEISim e UEISim IP address Enter the IP address of the UEISim Click on Real Time Workshop again and then on Build This will start the code generation and build process You should see an output similar to the following in MATLAB s command window Generating code into build directory C test ueisim_ueipac_rtw Invoking Target Language Compiler on ueisim rtw tlc r C test ueisim rtw e uei_svn software powerdna 3 3 x UEIPAC Simulink_rtw ueisim tle OC NtestNueisim ueipac rtw Te uei_svn software powerdna 3 3 x UEIPAC Simulink_rtw IC test ueisim_ueipac_rtw tle IC Program Files MATLAB R2007b rtw c tlc mw IC Program Files MATLAB R2007b rtw c tlc lib IC Program Files MATLAB R2007b rtw c tlc blocks IC Program Files MATLAB R2007b rtw c tlc fixpt IC Program Files MATLAB R2007b stateflow c tlc 13 United Electronic Industries The High Performance Alternative a aFo a aLoca EnforcelIntegerDowncast 1 LdNonRolledExpr 1 InlineInvariant
27. nk Parameters layer E channels 0 Sample time 01 layer The Id of the analog output layer associated with this block layer Ids start at O with the top layer e Channels Array of channels to generate to Sample Time The rate at which the block executes during simulation it also sets the hardware DAC clock 5 3 Digital Input The Digital Input block acquires the digital state of the channels specified in the channel list Each channel is available as a separate output A channel is a group of input lines The number of input lines contained in each channel depends on the hardware for example the DIO 405 groups its input lines in one port of twelve lines The data type is uint32 Each bit of the value read from a given channel corresponds to the state of one input line 23 UEISim User Manual y x United Electronic b d Industries The High Performance Alternative Source Block Parameters UEISIM Digital Input S Function mask link Parameters layer El channels B Sample time 01 layer The Id of the digital input layer associated with this block layer Ids start at 0 with the top layer Channels Array of ports to read from Input lines are organized into ports read the manual of your digital layer to find out how many lines there are in each port Sample Time The rate at which the block executes during simulation it also sets the hardware clock 5 4 Digi
28. nput ro u Set the Simulation stop time to inf if you wish to run the simulation continuously In your model window change the simulation mode from normal to external using the toolbar combo box Click on the Connect to target button After a few seconds you will be notified that the connection is established when the Start real time code button becomes enabled and the word External appears in the status bar Click on the Start real time code button to start the simulation Double click on the scope to view the acquired signal as well as the result of the transfer function 17 UEISim User Manual y x United Electronic Industries The High Performance Alternative UEIPAC Analog Output UEIPAC Analog Input UEIPAC Analog Input Scope DAR 10 NENNEN 73145 E34 20 9 D ABB FEAR Time offset 0 4 5 Logging Data to file A Matlab MAT data file is automatically created when the model is executed on the UEISIM By default it only contains one column of data representing the time of each step Use the Out block to add a column of data to the MAT file The example below acquires digital inputs and writes them to the MAT file 18 UEISim User Manual y x United Flectronic Industries The High Performance Alternative 73 untitled File Edit View Simulation Format Tools Help Deke e amp i UEISIM 4 Digital Input UEISIM Digital Input
29. or Extended initialization command A sequence of frames to send to the CAN bus right before the model start e Termination command A sequence of frames to send to the CAN bus right before the model terminates The initialization and termination sequences use the following format id1 lenl dataMSB1 dataLSB1 id2 len2 dataMSB2 dataLS B2 For example to send a CAN frame with ID 0x12 and 5 bytes of data 0x01 0z02 0x03 0x04 0x05 use the following hex2dec 12 5 hex2dec 05 hex2dec 04030201 5 9 2 CAN Send block Send a group of CAN frames to one CAN port You can create multiple instance of this block to send multiple groups of frames at different rate 37 y x United Electronic b d Industries The High Performance Alternative w Sink Block Parameters UEISIM CAN Send ueisim can send mask link Send CAN frames Parameters en v port arbitration ids 0 frame sizes 8 sampletime 0 01 UEISim User Manual e layer The Id of the CAN layer associated with this block layer Ids start at 0 with the top layer port The Id of the port to send to port Ids start at 0 arbitration ids A list of arbitration IDs to send frame sizes The size of the data payload for each frame sample time The rate at which the block executes during simulation The block displays an input port for connecting the value of the data payload for each frame
30. tal Output The Digital Output block updates the digital state of the channels specified in the channel list Each channel is available as a separate input A channel is a group of output lines The number of output lines contained in each channel depends on the hardware for example the DIO 405 groups its output lines in one port of twelve lines The data type is uint32 Each bit of the value written to a given channel corresponds to the state of one output line 24 UEISim User Manual y x United Electronic b d Industries The High Performance Alternative Sink Block Parameters UEISIM Digital Output S Function mask link Parameters layer E channels 0 1 2 Sample time 01 layer The Id of the digital output layer associated with this block layer Ids start at O with the top layer Channels Array of ports to write to Input lines are organized into ports read the manual of your digital layer to find out how many lines there are in each port Sample Time The rate at which the block executes during simulation it also sets the hardware clock The type of the signals connected to the DI block must be uint32 You can use Simulink s Data Type Conversion block to convert your signal as shown in the example below 25 UElISim User Manual y x United Flectronic Industries The High Performance Alternative untitled File Edit view Simulation Format Tools Help
31. tivity vector mV V disp 1000 0 m Wiring Scheme vector 4 for four wires 5 for five wires I4 Excitation Voltage vector RMS 5 0 Excitation Frequency vector Hz 400 0 External Excitation vector 0 for disabled 1 for enabled 0 Channel vector 1o Sample Time 0 01 e layer The Id of the analog input layer associated with this block layer Ids start at O with the top left layer 30 EUN UEISim User Manual United Electronic b d Industries The High Performance Alternative Minimum Range vector The minimum value expected at the input of each channel Maximum Range vector The maximum value expected at the input of each channel Sensor Sensitivity vector The sensitivity of the LVDT s connected to each channel Wiring Scheme vector The wiring scheme 4 or 5 wires used to connect LVDT s to each channel Excitation Voltage vector The excitation voltage used to power LVDT s connected to each channel Excitation Frequency vector The excitation frequency used to power LVDT s connected to each channel External Excitation vector Specifies whether channel s provide excitation to LVDT s or whether excitation is supplied externally Channel vector Array of channels to acquire from Sample Time The rate at which the block executes during simulation it also sets the hardware ADC clock 5 7 2 LVDT Simulation The data type of the value written to each configured channel is doubl
32. y on the UEISim hardware You can access all the analog I Os digital I Os counter timer I Os offered by PowerDNA from your Simulink model You can experiment with control system design signal processing data acquisition and similar tasks directly from the Simulink environment using its powerful block library without the need to use any additional tool 2 Software Installation The UEISim software runs on a Linux PC or on Windows 2 1 Pre requisites Before installing the UEISim software make sure that the following software is installed on your computer e Matlab R2007b R2008a R2008b or R2009a e Simulink e Real time Workshop 2 2 Install UEISim Software for Windows Insert the UEISIM Software CDROM in your CD drive If the installer doesn t start automatically it depends on whether autorun is enabled or disabled on your PC run the ueisim installer exe program on the CD ROM UEISim User Manual United Electronic Industries The High Performance Alternative UEISIM Setup linite welcome to the UEISIM Setup Electrome wizard Industries The High Performance Alternative This wizard will quide you through the installation of UEISIM It is recommended that you close all other applications before starting Setup This will rnake it possible to update relevant system Files without having to reboot your computer Click Next to continue Cancel Click on Next to move to the next wizard page
Download Pdf Manuals
Related Search
Related Contents
Technicolor - Thomson DTH8640 User's Manual Vom Schreibtisch des Chefredakteurs PDFをダウンロード(1 MB) JH600B-User-Manual Sea Gull Lighting 75850-782 Installation Guide Analyse der Nutzeranforderungen an den Schweizer Weltatlas Copyright © All rights reserved.
Failed to retrieve file