Home
UEISim User Manual 2.9
Contents
1. 7 54333 7 53196 7 54416 7 7 54333 7 53196 7 34416 7 5331 0 0000855513 0 000454 0 000082 98 4592 0 0 001 1 4 6 2 Remote monitoring with Simulink in external mode Simulink s external mode allows you to remotely monitor a simulation running on the UEISim from the Simulink application running on your host OC Select the menu option Simulation Configuration Parameters Click on the option Code Generation then on UEISim options 30 UEISim User Manual y 3 United Flectronic Industries The High Performance Alternative Verify that the UEISIM IP address is correct Change the Remote monitoring setting to External Click on OK and re build the model Logon the UEISim and start the simulation with the command line option w tmp ueisim w This option tells the model to wait for commands received over the network before starting execution ueisim File Edit View Simulation Format Tools Help Dic Ed seeleot Re Connect to target Simulation stop time Simulation mode UEISIM Analog Output 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 31 UEISim User Manual A United Flectronic Industries The High Performance Alternative Click on the Connect to target button After a few seconds you will be notified that the con
2. Host name The name or IP address of the server TCP Ip port The port to send to Buffer size Size in bytes of the network buffer Byte Order The endianness used to pack data in the TCP IP packet Sample Time The rate at which the block executes during simulation The block displays an input port for connecting the value of the packet payload it automatically adapts to the data type and dimension of the signal connected 5 14 2 2 TCP IP Receive block Receive TCP IP packets from a server You can create multiple instance of this block to receive multiple packets from different servers 86 UEISim User Manual A United Electronic Industries vY The High Performance Alternative ueisim_tcp_receive mask link Receive data over TCP IP network from a remote machine Parameters Host name 192 168 100 1 TCP IP Port 1080 Buffer Size 1024 Data Size 2 Data Type double Y Sample Time 0 001 Cancel Help Host name The name or IP address of the server TCP IP port The port to receive from Buffer size Size in bytes of the network buffer Data Size Dimension and size of the output signal for ex 2 4 will output received data in a 2x4 matrix Data Type The data type used to decode received data e Byte Order The endianness used to unpack the TCP IP packet payload e Sample Time The rate at which the block executes during simulation The block displays two out
3. Serial port COPDIPOLI Oa E 53 SEN Seral Setup block EE 54 K N Sernak Send blek EE 56 Soils Serial Receive EEN 57 S14 Tu E 58 5 12 CAN bus commumteatnon sese enne ener eene seen nn nns 59 5 121 CAN Setup TEE 60 51022 GAN Send block ite ee 62 342 3 CAN Receive block EE 63 Nr ERI RS 64 NT NNN e E iic 64 5 12 42 UMN ee EE 65 BAZ AS CAN pack block sessen ie eA HMM E DUANE QUA QUE 66 5 12 4 4 CAN unpack diio c 67 2412 55 CAN gr 68 5 13 ARINC 429 EE 70 513 1 ARING 429 Setup BIOGE cssrcsrsvndssaacadnasverecsemed n oes ou teca busca oaa eius 71 5 13 2 ARINC 429 Send DiOCK EE 72 5 13 3 ARINC 429 Receive block 73 5 13 4 ARINC 429 Encode EE 75 SIS erh E 75 SA2 BNR EE 76 SDK e Ser E 78 51344 e EE 79 5 13 5 ARINC 429 Decode leese eege eeneg 79 SN MEI 9p Cr 79 S1352 BNR Ter 80 SA GG e E 80 SISA E 81 SE ENT ee 81 5 14 Network commiunieallO sic deed 83 REN NL m 83 SLE UDP Send HG Clas enicsliettei iiie lesbet nuti endet ince eod arao 83 5141 2 UDP Receive Block e ex tva Hen PRU Lao aptus 84 514 2 et DE aout ten o GU na eben ir Dre sca o boda fiu ben a dra 85 5 14 22 1 TCP IP Send BIOBE EE 85 5 14 22 TOPHPAREGSIVE DIOOR E 86 514 3 RT te 88 S 14 3 1 DEISINI Pack block vic ssaicsscncacsathacansiuanacawanaieiedsinansaieaisaeaaaexesanaaenss 88 S432 URISIM Unpack blck xcs ssacccnalesicanteincctosisacstasssscamalaictaniadiecunsssadions 89 UEISim User Manual A United
4. time 0 otherwise Overloaded 1 is max task execution time ever becomes greater than the sample 26 UEISim User Manual pw United Electronic Industries w The High Performance Alternative e SampleTime The simulation base sample time in seconds e StopTime The simulation duration in seconds 1 for inifinite Other signals must be exported to be able to monitor them remotely For example to export the signal out of the Signal Conversion block right click on the signal wire and select Properties KEE Signal name Scan El Signal name must resolve to Simulink signal object Show propagated signals Logging and accessibility Code Generation Documentation em Storage class Export Y Storage type qualifier ps i Give the signal a name Scan and click on the Code Generation tab Set Storage class to ExportedGlobal to export the signal After the model is rebuilt and executed the client show the new Scan signal which is a vector of 4 values in this case 27 A United Electronic b d Industries The High Performance Alternative tcp 192 168 100 2 1234 Refresh Rate updates s 50 V Expand all signals and parameters El Signal Conversion Po Scan 7 5434 7 53264 7 54355 7 53165 El UEISIM Analog Input 7 53264 7 54355 7 53165 8 75202e 05 0 000258 8e 05 22 2391 0 0 001 UEISim User Manual
5. vY The High Performance Alternative Min TET 0 000082 max TET 0 000148 avg TET 0 000085 Simulated time 3 002000 s real time 3 001146 s Step completed its work in 0 000085 s remains 0 000915 s Min TET 0 000082 max TET 0 000148 avg TET 0 000085 Simulated time 4 003000 s real time 4 002159 s C Executed 4047 iterations in 4 047741 s 999 816935 updates per sec In the output above the model is running at 1kHz each step is taking 85us to do its work out of an allocated 1000us The TET values are minimum maximum and average task execution time Simulated time is the expected simulation time Real time is the measured simulation time while running on the target If real time exceeds simulated time you are doing too much work in your model The CPU can t execute the task within the allocated time 4 6 Remote monitoring 4 6 1 Remote monitoring with UEISIM desktop UEISIM desktop protocol allows you to remotely monitor a simulation running on the UEISim You can monitor the simulation using a generic application a web browser or a custom application developed in C C C or VB NET Select the menu option Simulation Configuration Parameters Click on the option Code Generation then on UEISim options Verify that the UEISIM IP address is correct Change the Remote monitoring setting to UEISimDesktop Click on OK and re build the model Logon the UEISim and start the simulation UEISi
6. Electronic Industries The High Performance Alternative Sa Ay BK OT 90 RW ID NETT T 92 5 151 Watchdog Block deben 92 UEISim User Manual y ow United Electronic Industries vY 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 directly 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 R2009a R2009b R2010a R2010b R201 1a R2011b R2012a R212b R2013a e Simulink e Real time Workshop for older versions of matlab or Simulink Coder for version r201 1a and up 2 2 Install UEISim Software for Windows Insert the UEISIM Software CDROM in your CD drive
7. 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 amp UEISIM Setup Eleciranie wizard ndusiries The Lligh Pecizirmanri Altertative This wizard will quide you through the installation of UEISIM A United Welcome to the UEISIM Setup It is recommended that you close all other applications before starting Setup This will make it possible to update relevant system files without having to reboot your computer Click Next to continue Click on Next to move to the next wizard page E UEISIM Setup AX Auilbd d License Agreement Electrum Please review the license terms before installing LIEISIM indastrles 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 1 Agree to continue You must accept the agreement to install LIEISIM Tune rell yer y Read the license agreeme
8. MATLAB 7 5 0 R2007b File Edit View Graphics Debug Desktop Window Help i E 43859 d r prer Ad Settings Frederic My sl ES Shortcuts 4 How to Add 7 What s New 5 Torrent ipestoty Morkspace jr D a x PAESE S Se ZS So E stacks bas oy Name value Fa 1000x1 double gt 0 0100 1000x1 uint32 4 8 Running a simulation automatically after boot Edit the file etc rc local and add an entry for any number of programs that you want to run after the UEISIM complete its power up sequence In the example below the etc rc local file is modified to run the program ueisim at boot time bin sh rc local Make sure that the script will exit 0 on success or any other This script is executed at the end of the boot sequence value on error listlayers gt etc layers xml sync devtbl 34 UEISim User Manual A United Electronic Industries vY The High Performance Alternative start Sample201 tmp ueisim amp exit 0 Note that ueisim is executed in the background amp prefix To stop ueisim you must send the SIGINT signal with the following command It is equivalent to typing CTRL C on the console if ueisim was running in the foreground killall SIGINT ueisim 5 UEISIM Blockset Ele Edi View Help Pa I a Enter search term Libra
9. 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 4 4 2 Using the UEISIM desktop API UEISim Software comes with an API to remotely control the simulation The API can be used from C C C or VB NET The UEISIM desktop API can start stop a simulation read signal and parameter values as well as timing statistics It can also write tunable parameter values The API is documented in more details in the manual UEISIM Desktop User Manual 4 5 Tuning step size and sample time The sample time parameter in the various I O blocks determines the maximum amount of work your model can perform within one step To get an idea of your model load you can enable the option Display Timing Information in the UEISIm Options configuration panel The model will display timing information once a second while running May run forever Model stop time set to infinity Step completed its work in 0 000085 s remains 0 000915 s Min TET 0 000083 max TET 0 000148 avg TET 0 000085 Simulated time 1 000000 s real time 0 999156 s Step completed its work in 0 000085 s remains 0 000915 s Min TET 0 000082 max TET 0 000148 avg TET 0 000085 Simulated time 2 001000 s real time 2 000157 s Step completed its work in 0 000091 s remains 0 000909 s 23 UEISim User Manual p 3 United Electronic Industries
10. access to the 429 566 and 429 512 ARINC 429 ports The configuration of each port is done using an independent setup block Sending and receiving ARINC 429 words to from a port is done using a send or receive block 70 A United Electranit b d Industries The High Performance Alternative We Library ueisim lib ARINC 429 device 0 port 0 device 0 port 0 device 0 port 0 label 2 label 2 100 5 13 1 ARINC 429 Setup block File Edit View Format Help Die sae UEISIM ARINC 429 Setup UEISIM ARINC 428 Setup KEE ARINC 429 Send UEISIM ARINC 429 Send EISIM ARINC 429 Regeive m UEISIM ARINC 429 Reo EISIM ARINC 429 Encode UEISIM ARINC 429 Encode EISIM ARINC 429 Decode v UEISIM ARINC 429 Decode Locked oo dE Configure communication settings on a given ARINC 429 port UEISim User Manual The setup block needs to run before the Send Receive blocks are called otherwise an error will be returned during model execution To view change the execution context order Select the menu option Format gt Block Displays gt Sorted Order and make sure that the setup block has a priority lower than the send and receive block for the same port To change a block priority Right click the block and select Block Properties On the General tab in the Priority field enter the new priority There must be one setup block for each port used in
11. be loaded from flash setenv bootcmd bootm fe000000 fe200000 14 Save environment to make those changes permanent and reset saveenv 4 Using UElSim add on from MATLAB Simulink 4 1 Configuration Start MATLAB then click on the Start button at the bottom left corner of MATLAB s window 14 UEISim User Manual United Electronic Industries The High Performance Alternative MATLAB 7 5 0 R2007b File Edit View Graphics Debug Desktop Window Help r e A amp Fe 7 m Sei 7 C Documents and Settings Frederic My Documents MATLAB Shortcuts al Howto Add F What s New Tien mme Workspace D gt Command Window se Tt EL 8 2 HaHa S E New to MATLAB Watch this Video see Demos or read Getting Started x gt gt 4b MATLAB Toolboxes Wb Library Browser Links and Targets E Help Ki Demos Product Page Web u sip Desktop Tools Embedded Tatget For UEISim 2 We UEISim Target Preferences Web lk Real Time Workshop Product Page web Rs Preferences pi Real Time Workshop Embedded Coder mus SS i i Find Files Wi Stateflow E Help Tras Ki Demos ire Shortcuts EB VEISIM Target Preferences Setup GNUToolchainPrefix powerpc 604 linux gnu UEISIM_ROOT c program files uei ueisin Reset to Default GNUToolchainPrefix specifies the name of the cross compiling tools used to build a model to a binary that can run on the U
12. 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 49 UEISim User Manual p 3 United Electronic Industries vY The High Performance Alternative e Sample Time The rate at which the block executes 5 10 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 only supported by analog input hardware that can provide excitation current to power the Synchro Resolvers for example the AI 255 5 10 1 Synchro Resolver Input block The data type of the value returned for each configured channel is double Measurements are returned as angles in radian 50 UEISim User Manual y N United Flectronic b d Industries The High Performance Alternative 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 e layer The Id of the analog input layer associated with this block layer Ids start at 0 with the top left layer e Mode vector Specifies whether a Synchro or a Resolver is connected to each channel e Excitation Voltage vect
13. layer E channels 12 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 e 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 e 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 DO block must be uint32 You can use Simulink s Data Type Conversion block to convert your signal as shown in the example below 40 A United Flectronic b d Industries The High Performance Alternative El untitled File Edit View Simulation Format Tools Help Dads zi Data Type Conversioni Pulse Switch 1 Generator Constant3 100 5 6 Counter Input block UEISim User Manual bc hoo Noms d UEISIIM Digital Output UEISIM Digital Output The Counter Input block acquires the current count of the specified counter Use one instance of this block for each counter you wish to use as input The data type is uint32 The value read depends on the counter operating 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 cloc
14. limited to range range Input values outside that range will be limited to range e lsb defines where the encoded value is inserted in the ARINC word Default is 11 e sdi if in the range 0 to 3 the block sets the SDI field of the word sent over the output port e ssm if in the range 0 to 3 the block sets the SSM field of the word sent over the output port TI UEISim User Manual y N United Flectroniec Industries vY The High Performance Alternative 5 13 4 3 Discrete Cast the input as an UINT32 and insert the low order 19 bits in the data field of the ARINC word along with the appropriate SSM SDI and Label parameter values Function Block Parameters UEISIM ARINC 429 Encode ueisim_ar429_encode mask link Encode ARINC word to send Parameters Label 102 Data Type Discrete Y LSB 11 29 SDI 0 3 D SSM 0 3 0 e label The 8 bit value inserted in the label field of the word sent over the output port e data type data type selector e lsb defines where the encoded value is inserted in the ARINC word Default is 11 e msb defines how much of the encoded value is truncated Default value is 29 e sdi if in the range 0 to 3 the block sets the SDI field of the word sent over the output port e ssm if in the range 0 to 3 the block sets the SSM field of the word sent over the output port 78 UEISim User Manual A United Flectronic Industries The High P
15. low state in clock ticks initial high count The initial width of each pulse high state in clock ticks inverted output the output signal is inverted when this is checked 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 CO block must be uint32 You can use Simulink s Data Type Conversion block to convert your signal 44 UEISim User Manual p 3 United Electronic Industries vY The High Performance Alternative 5 8 ICP IEPE block 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 ueisim_aiicp_read mask link Configure and read data from ICP TEPE channels Parameters Minimum Range vector g ot ooo Maximum Range vector g 10 Sensor Sensitivity vector mV g 1000 0 Excitation Current vector mA DG l Coupling vector 0 for AC 1 for DC 0 Low Pass Filter vector 0 for disabled 1 for enabled 45 UEISim User Manual p ow United Flectronic Industries vY The High Performance Alternative e layer The Id of the analog input layer associated with this block layer Ids start at 0 with the top left layer e Minimum Range vector The minimum value expe
16. model hangs or takes too long to complete a step f Sink Block Parameters UEISIM Watchdog Ex ueisim watchdog mask link Configure Watchdog Parameters Timeout ms Show Reset Port Sample Time 0 1 ok Cae Heb Apply e Timeout The watchdog timeout delay in milliseconds UEISIM will reboot if watchdog isn t reset before timeout expires e Show Reset port Allows to optionally connect a reset signal e Sample Time The rate at which the block executes during simulation When Show Reset Port is checked this block displays an input port for connecting a reset signal The watchdog resets whenever the input signal value is greater or equal than 0 5 Otherwise the watchdog is reset each time this block is executed 92
17. option to automatically download the simulation executable to the UEISim UEISim IP address Enter the IP address of the UEISim Display Timing Information Turn on timing information output Your model will print timing information once a second while running on the target Execute model in hard real time when enabled the model is executed in the context of a Xenomai real time task When disabled the model is executed in the context of a high priority Linux process You cannot use any block doing file I O such as To File in hard real time mode Remote monitoring Select the type of remote monitoring None no monitoring External Use Simulink in external mode UEISIMDesktop Use UEISIMDesktop protocol more details in section 3 5 Click on Real Time Workshop or on Code Generation 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 NtestNueisim ueipac rtw Invoking Target Language Compiler on ueisim rtw 20 United Electronic Industries The High Performance Alternative EL r C e uei_svn software powerdna 3 3 x U C NtestNueisim ueipac rtw uei_svn software powerdna 3 3 x UEIPAC Simulink rtw 0 I I I I I I I a a c NtestNueisim rtw Gl E LAB R2007b rtw c tlc mw LAB R2007b rtw c tlce lib LAB R2007b rtw c tlc bl
18. 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 putty 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 Performance Alternative U Boot 1 1 4 Jan 10 2006 19 20 03 CPU MPC5200 v1 2 at 396 MHz Bus 132 MHz IPB 66 MHz PCI 33 MHz Board UEI PowerDNA MPC5200 Layer I2C 85 kHz ready DRAM 128 MB Reserving 349k for U Boot at 07fa8000 FLASH 4 MB Tfi 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 ker
19. var ram disk maximum size is set to 2MBytes dev sdcard1 ext3 defaults noatime 1 1 none proc proc defaults 0 0 none sys sysfs defaults 0 0 none dev pts devpts defaults 0 0 tmpfs var tmpfs defaults size 2M 0 0 2 Create a new script etc varsetup sh with the content below It setups the folders needed in var and maps a few writable folders at tmp mnt and home kdir var tmp kdir var log kdir var lib kdir var lib misc kdir var spool kdir var spool cron kdir var spool cron crontabs kdir var run kdir var lock kdir var mnt ss 5848353535585 11 UEISim User Manual United Electronic Industries The High Performance Alternative mkdir var home mount bind var tmp tmp mount bind var mnt mnt mount bind var home home 3 Edit etc inittab as below to execute varsetup sh Mount all filesystem listed in etc fstab isysinit bin mount a Create and mount non persistent folders sysinit etc varsetup sh Configure local network interface sysinit sbin ifconfig lo 127 0 0 1 up Sysinit sbin route add net 127 0 0 0 netmask 255 0 0 0 lo run rc scripts isysinit etc rcs Start a shell on the console ttyS0 respawn bin sh unmount root file system when shutting down shutdown bin umount a r 4 Create symbolic links to files stored in etc that need to be kept writeable ln s var resolv conf etc resolv conf ln s var layers xml etc l
20. 0 aGenerateTraceInfo 0 p10000 Loading TLC function libraries Initial pass through model to cache user defined cod Caching model source code Writing header file ueisim types h Writing header file ueisim h Writing source file ueisim c Writing header file ueisim private h Writing header file rtmodel h Writing source file ueisim data c Writing header file rt nonfinite h Writing source file rt nonfinite c TLC code generation complete Evaluating PostCodeGenCommand specified in the model Adding e uei_svn software powerdna 3326E1 1 X UEIPAC SIMULI 1 to source and include paths Processing Template Makefil 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 rtwNueipac tmf is up to date Building ueisim Nueisim bat lots of compiler output Created executable ueisim Downloading ueisim to UEIPAC at 192 168 15 200 Downloaded ueisim ER The simulation executable is now ready to be executed in the tmp directory on the UElISim 22 UEISim User Manual p w United Flectronic Industries vY The High Performance Alternative 4 4 Running the simulation 4 4 1 From the command line Log on the UEISim using the serial port console Telnet or SSH and run the simulation executable in the tmp folder tmp ueisim
21. 4 Bil S DUCENTE TUTTI Umm 14 42 Convert your model EE 16 4 3 Create an executable from the TEE 18 A4 Running the simulation 5 uceaioserie ss senadenebhientais ch decassasstensndcandesomeenieds Macarielancsans 23 A31 From The command E 23 442 Using the UBISIM desktop API wascissistaretstinasssanatecetenniniaeneritieesaanieess 23 45 Tuning step size and sample time ace cacaccecsseudnnccnenavaconancuetencateeessen savaretaniaeteces 23 2 0 omite mio E HE EE 24 4 6 1 Remote monitoring with UEISIM desktop eese 24 4 6 2 Remote monitoring with Simulink in external mode 30 4 Logging Data to EE 32 4 8 Running a simulation automatically after boot 34 5 UEISIM Blockset T 35 5 1 Analog Input block qc 36 Su Ihennocouple ee E 36 5 3 Analog Output block sieisen ann a i iaeei 38 5 4 Digital Input aleeden eege 39 5 5 Digital Output leese eeh 39 5 6 Counter Inp t block uuo eo y E FUA D e UON EE EERE E 41 Dele PWM O tp t TE 43 5 8 ICPHEPE block EE 45 D EN poc 46 S9 ISYDT Input block uereg 46 592 JLVDISmulation E 48 MER nni Ur MENT T m 50 5 10 1 Synchro Resolver Input DIGGk E 50 UEISim User Manual p w United Flectronic Industries vY The High Performance Alternative 5 10 2 Synchro Resolver Simulation block s sssssnssesessseesseseseseesseesesresseesseseessee 52 S411
22. 58 from port 1 If port 0 and port are connected to the same CAN bus you will receive what you send 68 UEISim User Manual United Electronic Industries The High Performance Alternative can_loopback DER File Edit View Simulation Format Tools Help DISAS SaB Ale b Don Normal Eg OG UEISIM CAN Setup UEISIM CAN Setup device 4 port 1 device 4 port OQ UEISIM CAN Setup UEISIM CAN Setup1 UEISIM CAN Unpak e 102 102 P UEISIM CAN Send UEISIM CAN Receive ugISIM CAN Unpack signals device 4 port 1 device 4 portO 258 258 UEISIM CAN Unpack UEISIM CAN Send UEISIM CAN Receive LIEISIM CAN Unpack signals The example below shows how the status output can trigger a subsystem to only execute portion of your model when a fresh CAN frame has been received The triggered subsystem Trigger Type is configured to Rising It will execute when the CAN Receive status goes from 0 to 1 each time a new CAN frame is received 69 UEISim User Manual pw United Flectronic VY Industries The High Performance Alternative File Edit View Simulation Format Tock Help DISES t Bles Qe gt Fh leer d EB UEISIM CAN Setup device 0 port 0 UEISIM CAN Setup1 3 UEISIM CAN Receive EISIM CAN Unpac E device 0 port 0 1 UEISIM CAN Receive UEISIM CAN Unpack signals Triggered Subsystem T 0 00 lFixedStepDiscrete 5 13 ARINC 429 communication ARINC 429 communication blocks give
23. CAN Utilities WE Virtual Reality Toolbox BR xPC Target 5 12 1 CAN Setup block Configure communication settings on a given CAN port The setup block needs to run before the Send Receive blocks are called otherwise an error will be returned during model execution To view change the execution context order Select the menu option Format gt Block Displays gt Sorted Order and make sure that the setup block has a priority lower than the send and receive block for the same port To change a block priority Right click the block and select Block Properties On the General tab in the Priority field enter the new priority There must be one setup block for each port used in the model 60 PS UEISim User Manual United Electronic b d Industries The High Performance Alternative Wi Block Parameters UEISIM CAN Setup ueisim_can_setup mask link Configure ports on CAN layers such as the CAN 503 Parameters os Basen port ER speed 500 kBps frame format Standard Dip el acceptance code hex2dec 0 acceptance mask hex2dec FFFFFFFP initialization command mw 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 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 or Extended acceptance co
24. DT Input ueisim ailvdt read mask ink Sp Configure and read data from LVDT channels Parameters layer D Minimum Range vector displacement unit 10 l l Maximum Range vector displacement unit fo i m Sensor Sensitivity vector mV V disp 1000 0 Wiring Scheme vector 4 for four wires 5 for five wires 4 Excitation Voltage vector RMS 0 Excitation Frequency vector Hz 400 0 External Excitation vector 0 for disabled 1 for enabled e layer The Id of the analog input layer associated with this block layer Ids start at 0 with the top left layer 47 vY The High Performance Alternative UEISim User Manual United A Electronic Industries 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 ra
25. EISIM The default value is correct don t change it unless told by UEI technical support 15 UEISim User Manual A United Electronic Industries The High Performance Alternative UEISIM_ROOT The location of the folder where you 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 MT KB Eg File Edit View Simulation Format Tools Help DSHS bE r 23 a hoo Noma 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 16 UEISim User Manual pw United Flectronic VY Industries The High Performance Alternative Fie Edt View Help Enter search term 493 KR Simulink 3D Animation RW Simulink Control Design KR Simulink Design Optimiza RN Simulink Extras us cerni KR Simulink Verification and Bi Statefiow SS L UEISIMAnsiog 99 UEISIM Analog Input ESCH Output Wi System identification Tool UEISim Library UEISIM Counter UEISIM Digits Input re Input ICP IEPE ia a0 UEISIM Digital SC UEISIM PWM LVDT w Output Synchro Resolver E ER Video and Image Proces e Showing UElSim Library Replace the input sine wave block with an Analog I
26. The generic client can change tunable parameters Double Click on Gain and set a new value shared Value Edit Enter new value for Parameters demo_ai Gain Gain c cancel j 28 UEISim User Manual p 3 United Flectronic b d Industries The High Performance Alternative We can immediately see the effect of changing the gain the second channel out of the UEISIM Analog Input block is now multiplied by 10 Ke Shared Data Client Server Name tcp 192 168 100 2 1234 Refresh Rate updates s 50 V Expand all signals and parameters 7 5441 75 3188 73 4363 7 53264 7 54416 7 53188 7 54363 7 53242 9 00852e 05 0 000316 5 9e 05 446 249 0 0 001 1 The simulation can also be monitored from a web browser The built in web server uses the client s port incremented by 1 For example if you start the simulation with tmp ueisim_demo p 1234 you can monitor the parameter and signals from the URL http 192 168 100 2 1235 ueisim html 29 pw United Electronic b d Industries The High Performance Alternative Welcome to UEISIM x Ka UEISim User Manual 2 1 192 168 100 2 1 1235 ueisim html Microsoft Exchange laposte net adresse Stop Expand All Collapse All Y demo ai Signal Conversion Scan Y UEISIM Analog Input Y Stats AvgIET MaxTET MinTET ModelExecutionTime Overloaded SampleTime StopTime
27. UEISim User Manual A United Electronic Industries vY The High Performance Alternative UEISim User Manual 2 9 April 2014 Edition Copyright 2014 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 p ow United Flectronic Industries vY The High Performance Alternative Table of contents IE seriei E 5 2 Software ristallatiOn jsscseesisiasasssssssvonsescccssonsnsvastesaversensnsesvecesentensoveesnens 5 SG EM EE 5 2 2 Install UEISim Software for Windows scccsccssscssetssssscssccsscssecsssseseccesaces 5 2 3 Install UEISim Software for Latest 9 3 Configuring the UE KT sssessssecssssssvevesssssussseassdvevssnonconsasucennsdsensssscenssivens 9 3 1 Connecting the serial port Consoles ssccsssivssssstscaserssrmdaveatanerseriancdsacsninstauiaus 9 3 2 Configuring the IP Address ss lt ccusceccssuntcaveaetexeasenedansnancesceneatiacvannvievusexnsaversumate 10 33 E 11 3 3 1 Booting the SD card with system partition read only 11 3 3 2 Restoring or creating a new the SD card iee ost pape erri pcne abes 12 3 3 3 Booting from a RAM drive no SD card needed usuus 13 4 Using UEISim add on from MATLAB Simulink 1
28. Y The High Performance Alternative Excitation Voltage vector The excitation voltage used to power Synchro Resolver s simulated by each channel Excitation Frequency vector The excitation frequency used to power Synchro Resolver s simulated by 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 simulate from Sample Time The rate at which the block executes 5 11 Serial port communication Serial communication blocks give access to the SL 501 and SL 508 serial ports The configuration of each port is done using an independent setup block KW Simulink Library Browser m File Edit View Help O ce a Enter search term 280 Libraries Library UEISim Library Serial Search Results none HI e k a Real Time Workshop Em Signal Processing Blockset e Mil Simulink 3D Animation EISIM Serial Receiye A Simulink Control Design GL RW Simulink Design Verifier Wi Simulink Extras Wi Simulink Verification and Wi Statefiow E UEISim Library P LVDT n H ISIM Serial Send a UEISIM Serial Send ice 0 porto UEISIM Serial Setup device 0 portO UEISIM Serial Setup i Synchro Resolver A xPC Target Showing UElSim Library Serial Sending and receiving bytes to from a port is done usin
29. You can run the UEISIM Matlab selector using the shortcut in the Start Programs UEI UEISIM menu E UEISIM Setup United Completing the UEISIM Setup v Flectronie wizard Indusiries The High Performance Altemative 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 p ow United Electronic Industries vY 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 When 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 the serial port console Connect the serial cable
30. associated with this block layer Ids start at 0 with the top layer e Port The Id of the port to send data through port Ids start at 0 e Sample Time The rate at which the block executes during simulation The block displays an input port for connecting an array of type UINT32 containing raw values for each word to transmit Raw word is a 32 bits value coded as follow 32 31 30 29 11 10 9 8 1 P SSM Data SDI Label Use the ARINC 429 Encode block to encode a value using BCD BNR or Discrete data type in the data field Refer to section about encoding decoding words below 5 13 3 ARINC 429 Receive block Receive a group of ARINC 429 words from one RX port You can create multiple instances of this block to receive multiple groups of words at different rate 13 ae UEISim User Manual United Electronic b d Industries The High Performance Alternative r ja Source Block Parameters UEISIM ARINC 429 Recy ueisim_ar429_receive mask link Receive data from ARINC 429 RX port Parameters Layer 4 Y Port 6 Max Word Count 5 Sample Time 0 01 Show Status Port layer The Id of the ARINC 429 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 max word count The maximum number of word to read from the receive buffer sample time The rate at whic
31. at and labels 102 and 103 Port 6 receives those words and decodes them back using the same parameters than the encode block 81 UEISim User Manual pw United Electronic b 4 Industries The High Performance Alternative i f j arinc z9 lo AS F dee ae File Edit View Simulation Format Tools Help Dx S t Sml Hs Ell pd a hun Noma sl 2abhe UEISIM ARINC 429 Setup device 4 port 0 UEISIM ARINC 429 Setup1 UEISIM ARINC 428 Setup EISIM ARINC 429 Encode label 102 UEISIM ARINC 429 Encode CHEISIM ARINC 429 Send device 4 port 0 EISIM ARINC 429 Encode UEISIM ARINC 429 Send label 103 UEISIM ARINC 429 Encode1 EISIM ARINC 429 Decode label 102 L EISIM ARINC 429 Regeive UEISIM ARINC 429 Decode device 4 port 6 ISIM ARINC 429 Decode UEISIM ARINC 429 Recv label 103 UEISIM ARINC 429 Decode1 110096 Note that the first output of the demux block connected to ARINC 429 receive is not connected This output contains the number of words received and is ignored in this example The status output of the ARINC 429 decode blocks is also ignored You could connect it to a triggered subsystem that would execute when the decoder status goes from 0 to 1 each time a word that matches the label parameter is decoded 82 UEISim User Manual y N United Flectronic Industries The High Performance Alternative 5 14 Network communication 5 14 1 UDP UDP communication blocks give access to the Ethernet port S
32. ayers xml 5 Connect the console serial port power up the UEISIM and press a key to enter U Boot Type the following commands to load the root file system read only setenv bootargs console ttyS0 57600 root 62 1 ro saveenv reset 3 3 2 Restoring or creating a new the SD card Restoring or initializing a new SD card can only be done on a Liunx PC real or virtual 1 Locate the SD card image file rfs x y z tgz on your UEISIM CDROM as well as the script containing the sequenece of commands to partition format and initialize a new SD card 12 UEISim User Manual p ow United Flectronic Industries vY The High Performance Alternative 2 Connect the SD card via a USB adapter or directly if your computer has a built in reader 3 Type the command dmesg to find out what device node is associated with the SD card Linux kernel outputs messages when it detects a new removable drive 4 Assuming that dev sdb is the SD card device node type createsdcard sh dev sdb rfs x y z tgz to partition format and copy files to the card 3 3 3 Booting from a RAM drive no SD card needed Booting from a RAM disk is faster than any other method However the RAM disk size is limited to 16Mbytes and any data written to the RAM disk is lost when the system shuts down or reboot The RAM disk can only fit in the flash memory of the UEIPAC models based on the 8347 CPU UEIPAC 1G or UEIPAC R Uploading the RAM disk image must b
33. cted at the input of each channel e Maximum Range vector The maximum value expected at the input of each channel 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 e 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 9 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 9 1 LVDT Input block The data type of the value returned for each configured channel is double The unit of the values read by this block is a displacement and depends on the sensor sensitivity unit For example if you specify sensor sensitivity in mV V mm the values read are millimeters With sensitivity set to 1000 mV V mm you will measure a displacement of 1mm to 1mm when moving the LVDT sensor across its full range 46 UEISim User Manual y 3 United Electronic QY uus The High Performance Alternative Wi Source Block Parameters JEISIM LV
34. ctronic Industries The High Performance Alternative e Byte alignment The minimum number of bytes occupied by each member Possible values are 1 2 4 and 8 For example with align 4 int8 and uint8 members will occupy 4 bytes with 3 zero bytes for padding The block automatically converts itself to one with the correct number of input ports There is always one output port of type uint8 The output value is ready to be connected to the UDP Send block The UEISIM UDP or TCP IP Send block needs to be configured to send data of type uint8 5 14 3 2 UEISIM Unpack block ueisim udp unpack mask link Receives a vector of uint8 and outputs various Simulink data types in different sizes Parameters dimensions cell array data types cell array 1 uint32 double double endianness cell array intel intel intel Cas zm e Dimensions A cell array containing the dimensions as returned by MATLAB size function of the corresponding signal e Data types A cell array containing the data types of the structure members to unpack from the buffer e Endianness A cell array containing the endianness of the signals to unpack 89 UEISim User Manual A United Flectronic Industries The High Performance Alternative e Byte alignment The minimum number of bytes occupied by each member Possible values are 1 2 4 and 8 For example with align 4 int8 and uint8 members will occupy 4 bytes wit
35. de Acceptance filter code configuration acceptance mask Acceptance filter mask configuration initialization command A sequence of frames to send to the CAN bus right before the model start Termination command A sequence of frames to send to the CAN bus right before the model terminates 61 UEISim User Manual A United Flectronic Industries The High Performance Alternative The initialization and termination sequences use the following format id1 lenl dataMSB1 dataLSB1 id2 len2 dataMSB2 dataLSB2 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 J 5 12 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 i Sink Block Parameters UEISIM CAN Send ueisim can send mask link Send CAN frames Parameters layer port arbitration ids 0 frame sizes 8 sampletime Dm 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 f
36. e done from the boot loader command line using the TFTP protocol Make sure you have a TFTP server running on your workstation Follow the steps below to upload the RAM disk to memory and boot from it 5 Connect a serial cable to your UEISIM and start a serial terminal software with communication settings set to 57600 8 N 1 6 Copy lt UEISIM INSTALL DIR rfs uRamdisk x y z file to the root directory of your TFTP server N Power up the UEISIM and press any key to enable the boot loader command line You should see the prompt gt 8 Configure the UEISIM s IP address setenv ipaddr IP address of the UEISIM gt VO Configure U Boot to use your host PC as TFTP server setenv serverip IP address of your host PC 10 Upload RAM disk tftp 4000000 uRamdisk x y z 11 Copy the RAM disk to flash erase fe200000 fe7fffff cp b 4000000 fe200000 S filesize 12 Update bootargs variable to tell the kernel that its root file system is a RAM disk 13 UEISim User Manual A United Electronic b d Industries The High Performance Alternative For 5200 based UEISIM setenv bootargs console ttyPSC0 57600 root dev ramO rw For 8347 based UEISIM setenv bootargs console ttyS0 57600 root dev ram0 rw 13 Change boot command to unpack the RAM disk in memory before starting the kernel For 5200 based UEISIM RAM disk must be loaded from RAM setenv bootcmd bootm ffd50000 4000000 For 8347 based UEISIM RAM disk can
37. ed in the label field of the word sent over the output port e data type data type selector 75 PZ UEISim User Manual United Flectronic b d Industries The High Performance Alternative BCD resolution the value of the least significant digit of the BCD data field to be encoded and sent For example if the associated resolution is 01 and the input signal contains the value 3 1415 the output ARINC word will contain the number 314 in its data field encoded in BCD Isb defines where the encoded value is inserted in the ARINC word Default is 11 sdi if in the range 0 to 3 the block sets the SDI field of the word sent over the output port ssm if in the range 0 to 3 the block sets the SSM field of the word sent over the output port 5 13 4 2 BNR Scale the input and convert to two s complement binary notation then pack it into an ARINC word with the appropriate SSM SDI and Label parameter values 76 UEISim User Manual A United Flectronic Industries The High Performance Alternative Wi Function Block Parameters UEISIM ARINC 429 Encode1 ueisim ar429 encode mask link Encode ARINC word to send Parameters Label Data Type DNR Y BNR Range 100 LSB 11 SDI 0 3 D SSM 0 3 e label The 8 bit value inserted in the label field of the word sent over the output port e data type data type selector e BNR range scale factor used to scale the input value which is then
38. ending and receiving UDP packets to from the Ethernet port is done using the UDP send or UDP receive block Wi Library ueisim Wei leslie File Edit View Format Help Deke ISIM UDP Send Date Port 64000 UEISIM UDP Send UEISIM UDP Receive P Port 64000 UEISIM UDP Recv Ready 110025 Locked 5 14 1 1 UDP Send block Send UDP packets to a network host You can create multiple instance of this block to send packets to different ports at different rates 83 UEISim User Manual A United Flectronic Industries The High Performance Alternative WE Sink Block Parameters UEISIM UDP Send ueisim udp send mask link Send data over UDP network to a specified remote machine Parameters Host name The name or IP address of the destination host UDP port The port to send to must be gt 1024 and 65535 Buffer size Size in bytes of the network buffer Byte Order The endianness used to pack data in the UDP packet Sample Time The rate at which the block executes during simulation The block displays an input port for connecting the value of the packet payload it automatically adapts to the data type and dimension of the signal connected 5 14 1 2 UDP Receive block Receive UDP packets from a network host You can create multiple instance of this block to receive multiple packets from different ports 84 UEISim User Manual A United Flectronic b d Industri
39. erformance Alternative 5 13 4 4 Raw Cast the input to an unsigned 32 bit integer and output it as an ARINC word with no further processing 5 13 5 ARINC 429 Decode block Compare label and decode raw word to scaled value The block displays one input port to connect a UINT32 coming from the ARINC 429 Receive block It also displays an output port for the decoded value and a status output port Status is 0 if the input raw word s label field didn t match the label parameter and 1 otherwise 5 13 5 1 BCD Decode the data field from 5 digit BCD value to double r em Wi Function Block Parameters UEISIM ARINC 429 Decode ueisim_ar429_encode mask link Encode ARINC word to send Parameters Label 102 Data Type BCD v BCD Resolution 1 0 LSB 11 Co Ene Help Am e label The 8 bit value to compare with the label field of the word received on the input e data type data type selector 19 UEISim User Manual y N United Flectronic Industries The High Performance Alternative e BCD resolution the value of the least significant digit of the BCD data field to be decoded e lsb defines where the raw value is located in the input word Default is 11 5 13 5 2 BNR Decode the data field from two s complement binary notation and apply scaling factor OC Function Block Parameters UEISIM ARINC 429 Decode ueisim_ar429_encode mask link Encode ARINC word to send Paramet
40. ers Label Data Type BNR Y BNR Range 10 e label The 8 bit value to compare with the label field of the word received on the input e data type data type selector e BNR range scale factor used to scale the coded value back to its original value e lsb defines where the coded value is located in the ARINC word Default is 11 5 13 5 3 Discrete Extract the data field from the input word and cast it as a double 80 UEISim User Manual y N United Electronic Industries vY The High Performance Alternative OC Function Block Parameters UEISIM ARINC 429 Decode ueisim_ar429_encode mask link Encode ARINC word to send Parameters Label 102 Data Type Discrete LSB 11 2 Gene o Gao e label The 8 bit value inserted in the label field of the word sent over the output port e data type data type selector e lsb defines where the coded value is located in the ARINC word Default is 11 e msb defines how much of the coded value to extract Default value is 29 5 13 5 4 Raw Cast the input to a double with no further processing 5 13 6 ARINC 429 examples The following example configures two ports 0 and 6 to run at the same speed On 429 566 port 6 is internal loopback port it automatically receives whatever is transmitted out of port 0 Port 0 transmits two words where the value from a ramp function block is encoded using BCD form
41. es The High Performance Alternative r Wi Source Block Parameters UEISIM UDP Recv ueisim udp receive mask link Receive data over UDP network from a remote machine Parameters UDP Port 64000 Buffer Size 1024 Data Size 2 Data Type double z Byte Order BigEndian D Sample Time 0 1 UDP port The port to receive from must be gt 1024 and lt 65535 Buffer size Size in bytes of the network buffer Data Size Dimension and size of the output signal for ex 2 4 will output received data in a 2x4 matrix Data Type The data type used to decode received data Byte Order The endianness used to unpack the UDP packet payload Sample Time The rate at which the block executes during simulation The block displays two output ports Data The signal extracted from the packet payload Status The number of bytes in the payload 0 if no packet was received 5 14 2 TCP IP Client 5 14 2 1 TCP IP Send block Send TCP IP packets to a TCP IP server You can create multiple instance of this block to send packets to different servers at different rates 85 UEISim User Manual A United Electronic Industries vY The High Performance Alternative ueisim_tcp_send mask link Send data over TCP IP network to a specified remote machine Parameters Host name TCP IP Port 1080 Buffer Size 1024 oe order Sample Time 0 1 Lox JI Cancel Help Apply
42. for each channel C for Celsius F for Fahrenheit K for Kelvin and R for Rankin e CJC Type The type of cold junction compensation It can be Built in or Constant e CJC Value The temperature constant used when CJC type is set to Constant e Input Mode Single Ended or Differential e Sample Time The rate at which the block executes during simulation it also sets the hardware ADC clock 5 3 Analog Output block 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 unit is volts Sink Block Parameters UEISIM Analog Output S Function mask link Parameters layer q channels t0 Sample time o SS Cancel Hee Apply e layer The Id of the analog output layer associated with this block layer Ids start at 0 with the top layer 38 UEISim User Manual A United Electronic Industries vY The High Performance Alternative e Channels Array of channels to generate to e Sample Time The rate at which the block executes during simulation it also sets the hardware DAC clock 5 4 Digital Input block 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
43. g a send or receivee block 33 UEISim User Manual p 3 United Electronic Industries vY The High Performance Alternative 5 11 1 Serial Setup block Configure communication settings on a given Serial port The setup block needs to run before the Send Receive blocks are called otherwise an error will be returned during model execution To view change the execution context order Select the menu option Format gt Block Displays gt Sorted Order and make sure that the setup block has a priority lower than the send and receive block for the same port To change a block priority Right click the block and select Block Properties On the General tab in the Priority field enter the new priority There must be one setup block for each serial port used in the model 54 UEISim User Manual y 3 United Flectronic Industries The High Performance Alternative WE Block Parameters UEISIM Serial Setup ueisim_serial_setup mask link Configure ports on serial layers such as the SL 501 Parameters layer buffer size 1024 mode RS 232 v speed 57600 data bts pariy Cancel Help Apply e Layer The Id of the Serial layer associated with this block layer Ids start at 0 with the top layer e Port The Id of the port to configure port Ids start at 0 Buffer size Size in bytes of the send receive buffers determines the maximum number of bytes able to be received or sent Mode The serial lin
44. h 3 zero bytes for padding The block displays one input port to connect a uint8 vector coming from the UDP Receive block The block automatically converts itself to one with the correct number of output ports The UEISIM TCP Ip or UDP Receive block needs to be configured to receive a vector of type uint8 whose dimension is the size occupied by all members defined in the unpack block in bytes 5 14 4 UDP example The following example acquires analog input channels and sends over the result to a network host r Rame Aa 9 A 34 4e bai File Edit View Simulation Format Tools Help Dude 5685568 7 es CE M Analog Input Ej MATE ESCHER device 0 UEISIM Analog Input 7 UEISIM UDP Send The following example sends simulated data and receives it too IP address must be set to 127 0 0 1 90 UEISim User Manual y x United Flectronic DPD uus The High Performance Alternative The following example receives 44 bytes from UDP port 64001 and decodes them as one uint32 one double and a vector of 4 doubles File Edit View Simulation Format Tools Help DISAS eB Fh xa zJBmpd 1347308405 0826 UEISIM UDP Bech ve Port 64001 i UEISIM UDP Recv 9 UEISim User Manual A United Flectronic Industries The High Performance Alternative 5 15 Miscellaneous 5 15 1 Watchdog block A hardware watchdog can be configured to reboot the UEISIM if the
45. h the block executes during simulation Show Status Port Enable disable status reporting The block outputs a signal of type UINT32 The first value in the array contains the number of words actually retrieved followed by the raw values of each word Raw word is a 32 bits value coded as follow 32 31 30 29 11 10 9 8 1 P SSM Data SDI Label Refer to section about encoding decoding data field into word below The status output when enabled can take any of the following values N gt 0 Number of words still available in the receive buffer 74 UEISim User Manual y N United Flectronie Industries vY The High Performance Alternative e 2 RX Buffer overrun The receive block is not executed often enough to keep up with the pace of incoming words 5 13 4 ARINC 429 Encode block Create ARINC 429 raw word and encode value using raw discrete BCD or BNR format 5 13 4 1 BCD Scale and convert the input as a signed integer limit it to the range representable by an ARINC five character BCD value and pack it into an ARINC word with the appropriate SSM SDI and Label parameter values Function Block Parameters UEISIM ARINC 429 Encode ueisim_ar429_encode mask link Encode ARINC word to send Parameters Label 102 Data Type BCD v BCD Resolution o4 LSB i 11 SDI 0 3 0 d SSM 0 3 0 NENNEN TWIN wm e label The 8 bit value insert
46. 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 CH Source Block Parameters UEISIM Digital Input x 5 Function mask link Parameters layer H channels 3 Sample time DI RSR e layer The Id of the digital input layer associated with this block layer Ids start at 0 with the top layer e 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 e Sample Time The rate at which the block executes during simulation it also sets the hardware clock 5 5 Digital Output block The Digital Output block updates the digital state of the channels specified in the channel list Each channel is available as a separate input 39 UEISim User Manual A United Flectronic Industries The High Performance Alternative 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 Sink Block Parameters UEISIM Digital Output 5 Function rask link Parameters
47. ive block is not executed often enough to keep up with the pace of incoming bytes Use the demux block to separate received data into individual signals 5 11 4 Serial example The following example sends simulated data to one port receive data from another port This example will read back the data sent 1f both ports are connected with a NULL modem cable 58 UEISim User Manual p x United Flectronic Industries The High Performance Alternative Nm UI ile Edit View Simulation Format Tools Help Dic HS A Se 5g a fioo Normal sl D UEISIM Serial Setup UEISIM Serial Setup device 8 port 0 device 8 port 1 UEISIM Serial Setup UEISIM Serial Setup1 Sine Wave Gain ISIM Serial Send evice 8 port 0 UEISIM Serial Send d 5 EISIM Serial Recei device 8 von Pe F 3 2 UEISIM Serial Receive 5 12 CAN bus communication CAN 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 59 UEISim User Manual A United Flectronic Industries The High Performance Alternative Ei Simulink Library Browser File Edit View Help DG 4a 44 Utilities ueisim_lib CAN Utilities Simulink WE Data Acquisition Toolbox Wi Real Time Workshop BE Real Time Workshop Embedded Coder BH Simulink Extras Wi Stateflow Be VETSim Library i i H
48. k mode RS 232 RS 485 HD RS 485FD Speed The baud rate of the serial link Data bits The number of data bits in each transmitted frame Parity The method used to calculate the parity bit Stop bits The number of stop bits in each transmitted frame 23 UEISim User Manual A United Electronic Industries The High Performance Alternative 5 11 2 Serial Send block Send a bytes to one Serial port You can create multiple instance of this block to send data to the same port at different rate ueisim_serial_send mask link Send data over serial port Parameters layer 8 X header terminator n byte order BigEndian X sample time 0 01 Ca Cmn ew 0 e Layer The Id of the Serial layer associated with this block layer Ids start at 0 with the top layer Port The Id of the port to send data through port Ids start at 0 Header String of bytes to be sent before the data Terminator String of bytes to be sent after the data Byte Order The endianness used to convert signal s to bytes Sample Time The rate at which the block executes during simulation The block displays an input port for connecting the value to send through the serial port it automatically adapts to the data type and dimension of the signal connected 56 UEISim User Manual United Electronic Industries The High Performance Alternative Use the mux block to combine multiple signals that needs t
49. k 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 41 UEISim User Manual pw United Electronic b d Industries The High Performance Alternative ueisim_ci_read mask link Configure and read data from counter layers such as the CT 601 and QUAD 604 This will return the period or pulse width in counts of the high speed clock To convert to seconds divide by the clock frequency 66e6Hz Parameters layer E inverted input Sample time 0 01 Debounce Input Count 160000 Debounce Input Gate 160000 e layer The Id of the digital output layer associated with this block layer Ids start at 0 with the top layer e port The port to read from e mode The operation mode Possible values are Count Events Measure Pulse width Measure period and Quadrature Encoder 42 UEISim User Manual p w United Electronic Industries vY The High Performance Alternative 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 e Sample Time The rate at which the block executes during simulation it also set
50. m 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 Thermocouple Input block The Thermocouple Input block acquires data from the channels specified in the channel list Each temperature measurement is available as a separate output 36 UEISim User Manual y 3 United Flectronic DPD uu The High Performance Alternative The data type is double unit is same as the temperature scale specified in the block parameters ueisim_tc_read mask link Configure and measure temperature from thermocouples connected to an analog input layers Parameters Minimum Temperature Range vector 100 Maximum Temperature Range vector 100 Channel vector Temperature scale vector rc oc Tne CIC Value 25 0 Input Mode Sample Time 0 01 Cal t Gb 37 UEISim User Manual A United Flectronic Industries The High Performance Alternative e layer The Id of the analog input layer associated with this block layer Ids start at 0 with the top layer Minimum Range The minimum temperature expected at the input Maximum Range The maximum temperature expected at the input Channel list Array of channels to acquire from Thermocouple type The type of thermocouple connected to each channel Supported types are E J K R S T B N C e Temperature Scale The temperature scale
51. mDesktop protocol uses the TCP IP port 2345 by default You can change the port with the command line option port tmp ueisim port 1234 24 UEISim User Manual pw United Flectronic b d Industries The High Performance Alternative You can now run the generic client or a client you built using the UEISIM target API Use the following URL in the generic client tcp 192 168 100 2 1234 Consider for example the example below SEE Filer ditis ian tie D n Shitaletiocs Analysis Code Jools CIE TE E Here is what this model signals and parameters look like in the generic client 25 p 3 United Electronic b d Industries The High Performance Alternative UEISim User Manual Ke Shared Data Client Server Name tcp 192 168 100 2 1234 Refresh Rate updates s 50 Expand all signals and parameters 7 54294 7 53051 7 54249 7 53142 8 67356e 05 0 000256 8 3e 05 11 7892 0 0 001 1 The signals available are the 4 outputs of UEISIM Analog Input The only tunable parameter is the Gain parameter of the Gain block You can not change any of the UEISIM block parameters during simulation The UEISIM desktop protocol also makes timing statistics available AvgTET average task execution in seconds MaxTET maximum task execution time in seconds MinTET minimum task execution time in seconds ModelExecutionTime Number of seconds since simulation started
52. mp uei svn softwarespowerdna 3 3 x UEIPAC UEISim ueisim tle Template make file ueisim tmf Make command make rtw Select the UEISim Real Time Target and click OK For Matlab R2012a and later select the Code Generation Interface option and make sure Classic call interface is enabled 18 y x United Electronic Industries The High Performance Alternative Data Import Export 1 Optimization Hardware Implementat 7 Model Referencing ee Simulation Target Code Generation Select UEISim options UEISim User Manual Software environment Code replacement library C89 C90 ANSI Shared code placement Auto Support non finite numbers Code interface 7 Classic call interface Data exchange V MAT file logging MAT file variable name modifier rt mete pe 19 UEISim User Manual A United Flectronic b d Industries The High Performance Alternative r a e Configuration Parameters untitled Configuration Active Custom Code Debug Interface UEISim options V Download to UEISim Data Import Export UEISim IP address 192 168 100 2 Optimization Diagnostics Hardware Implementat Execute model in hard real time file I O not supported t Model Referencing Simulation Target Code Generation V Display Timing Information Remote monitoring External UEISIMDesktop L o Jon Download to UEISim Check this
53. msb lt X X X X X 23 22 21 20 19 18 17 16 2 X X X X X gt lsb 31 30 29 28 27 26 25 24 3 39 38 37 36 35 34 33 32 4 47 46 45 44 43 42 41 40 5 55 54 53 52 51 50 49 48 6 63 62 61 60 59 58 57 56 7 ogessoul NV UYIM Joquinu 344g In the example above a twelve bit long message begins at start bit 18 the Isb of the LSB is at position 8 counting downward from the start of the message 5 12 4 3 CAN pack block Pack multiple signals into one CAN message Signals are encoded using data type and position of bits in message 66 UEISim User Manual A United Flectronic Industries The High Performance Alternative 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 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 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 The block automatically converts itself to one with the correct number of inpu
54. nection 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 UEIPAC Analog Output UEIPAC Analog Input csse E329 Ama Sas Tie offset O 4 7 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 32 UEISim User Manual A United Electronic Industries The High Performance Alternative 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 C untitled SEE File Edit View Simulation Format Tools Help Denge e UEISIM 4 Digital Input UEISIM Digital Input 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 33 UEISim User Manual p 3 United Flectronic Industries The High Performance Alternative
55. nel 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 od 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 new IP address 10 UEISim User Manual p 3 United Electronic Industries vY The High Performance Alternative 3 3 File system The UEISIM file system contains the libraries executables and configuration files needed to make the system functional By default the file system is stored on the SD card inserted on the front panel of the UEISIM The file system can alternatively be located in a RAM drive loaded from the FLASH memory or loaded from a remote server using the NFS protocol The standard UEISIM file system is read write to ease the configuration and allow uploading of model files during the development phase Once a model is stable it is recommended to convert the file system to read only mode to render the UEISIM file system resilient against un scheduled shutdowns 3 3 1 Booting the SD card with system partition read only The procedure below converts the standard UEISIM file system to a read only one 1 Edit etc fstab as below to mount a RAM disk at
56. nput block and add an Analog Output block to generate the result as well as display it on the scope ueisim PRISES File Edit View Simulation Format Tools Help Dee 5 9 557 mo Nona UEISIM Analog Output UEISIM Analog Output UEISIM Analog Input fode45 17 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 If you are running a Matlab version earlier than R2012a Select the Real Time Workshop option then click on Browse to change the system target file For Matlab R2012a and later select the Code Generation option then on Browse to change the system target file NM System target file browser ueisim System target file Description grt tlc Visual C C Project Makeia 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 ueisin tle UEISin Real Time Target xpctarget tlc xPC Target LJ xpctargetert tlc xPC Target ERT v lt D Full name a
57. nt and click on I Agree if you accept the terms of the agreement UEISim User Manual United Electronic Industries The High Performance Alternative amp UEISIM Setup Pw HCH Choose Install Location b 4 Electr ule Choose the folder in which to install UEISIM lutastries Setup will install LIEISIM in the following folder To install in a different Folder click Browse and select another Folder Click Next to continue Destination Folder Ca Program Files LIETILIETSIM 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 space amp UEISIM Setup pw Dutot Installing b 4 Fleet Tult Please wait while LIEISIM is being installed lodastries Extract ccl exe 67 COO 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 UEISim User Manual y 3 United Electronic Industries vY The High Performance Alternative UEISIM Matlab Selector 7 5 C Program Files MATLABSR2007b 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
58. o be sent together 5 11 3 Serial Receive block Receives bytes from a serial port You can create multiple instance of this block to receive data from different ports ueisim_serial_receive mask link Receive data from serial port Parameters terminator n data size 2 data type byte order sample time 0 01 E show status port 57 UEISim User Manual p w United Flectronic Industries vY The High Performance Alternative e Layer The Id of the Serial layer associated with this block layer Ids start at 0 with the top layer Port The Id of the port to send data through port Ids start at 0 Header String of bytes that signals the beginning of a data frame Terminator String of bytes that signals the end of a data frame Data Size Dimension and size of the output signal for ex 2 4 will output received data in a 2x4 matrix Data Type The data type used to decode received data Byte Order The endianness used to convert received bytes to signal s Sample Time The rate at which the block executes during simulation Show Status Port Enable disable status reporting The block displays two output ports e Data The signals extracted from the packet payload e Status The status see below The status output when enabled can take any of the following values e 0 No bytes were received e N Number of bytes received e 1 A hardware error occurred e 2 Buffer overrun The rece
59. ocks LAB R2007b rtw c tlc fixpt e N C NtestNueisim ueipac rtwNtlc C Program Files MAT C Program Files MAT C Program Files MAT C Program Files MAT C Program Files MAT FoldNonRolledExpr 1 LABNR2007bNstateflowNcNtlc EnforceIntegerDowncast 1 aInlineInvariantSignals 0 Ta a a a a a a a a InlineParameters 0 LocalBlockOutputs 1 RollThreshold 5 ZeroInternalMemoryAtStartup 1 ZeroExternalMemoryAtStartup 1 InitFltsAndDblsToZero 1 GenerateReport 0 GenCodeOnly 0 RTWVerbose 1 alncludeHyperlinkInReport 0 a a LaunchReport 0 GenerateTraceInfo 0 aForceParamTrailComments 0 a GenerateComments 1 algnoreCustomStorageClasses 1 a IncHierarchyInIds 0 aMaxRTWIdLen 31 ShowEliminatedStatements 0 a a a IncDataTypeInIds 0 InsertBlockDesc 0 aSimulinkBlockComments 1 alnlinedPrmAccess Literals a a IsPILTarget 0 argetFcnLib ansi tfl table tmw mat aLogVarNameModifier rt a a a a a a a a GenerateFullHeader 1 ExtMode 0 ExtModeStaticAlloc 0 ExtModeTesting 0 RTWCAPISignals 0 RTWCAPIParams 0 aGenerateASAP2 0 a DownloadToUEIPAC 1 ExtModeStaticAllocSize 1000000 ExtModeTransport 0 UEISim User Manual PAC Simulink rtwNueisim tlc 21 UEISim User Manual United Electronic Industries The High Performance Alternative aUEIPACIPAddress 192 168 15 20
60. or The excitation voltage used to power Synchro Resolvers s connected to each channel e Excitation Frequency vector The excitation frequency used to power Synchro Resolver s connected to 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 acquire from 51 UEISim User Manual pw United Flectronic Industries The High Performance Alternative e Sample Time The rate at which the block executes during simulation it also sets the hardware ADC clock 5 10 2 Synchro Resolver Simulation block The data type of the value written to each configured channel is double The value must be specified as an angle in radian BF Sink Block Parameters UEISIM Synchro Resolver Simulation ueisim_aosyncres_write mask link Configure and read data from Synchro Resolver channels Parameters layer D s Mode vector 0 for Synchro 1 for Resolver 0 BEEN Excitation Voltage vector RMS 0 Excitation Frequency vector Hz 400 0 P External Excitation vector 0 for disabled 1 for enabled L m n ze e layer The Id of the analog input layer associated with this block layer Ids start at 0 with the top left layer e Mode vector Specifies whether each channel is simulating a Synchro or a Resolver 52 UEISim User Manual United Electronic Industries ae v
61. or connecting the value of the data payload for 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 62 UEISim User Manual A United Electronic Industries vY The High Performance Alternative 5 12 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 groups of frames at different rate Wi Source Block Parameters UEISIM CAN Receive ueisim_can_receive mask link Receive CAN frames Parameters layer 3 hd port 1 TY arbitration ids 12 32 sampletime 0 00025 E show status port Cu Cae ie 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 sample time The rate at which the block executes during simulation Show Status Port Enable disable status reporting 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 The status outpu
62. put ports 87 UEISim User Manual A United Electronic Industries vY The High Performance Alternative e Data The signal extracted from the packet payload e Status The number of bytes in the payload 0 if no packet was received 5 14 3 Utility blocks Utility blocks are used to pack and unpack data structures stored in the TCP IP or UDP packets that are sent or received You can specify different data types for each member of the data structure Each member is specified using the following parameters e data type the type of the member possible values are boolean int8 uint8 int16 uint16 int32 uint32 single or double e endianness the endianness of the member possible values are intel for little endian motorola for big endian and alorotom for backward Motorola format 5 14 3 1 UEISIM Pack block e Wi Function Block Parameters UEISIM UDP Pack signals ueisim_udp_pack mask link Pack one or more Simulink signals of varying data types to a single vector of uint8 Parameters data types cell array int32 double double int8 int32 endianness cell array 1 intel intel intel intel intel cas Cin Cii e Data types A cell array containing the data types of the structure members to pack in the buffer e Endianness A cell array containing the endianness of the signals to pack 88 UEISim User Manual y N United Fle
63. ries d Instrument Control Toolbox a Pa Simulink 3D Animation Pa Simulink Coder Pa Simulink Contro Design Pa Simulink Design Verifier Pa Simulink Extras BE ote ate HE Sone E Synchro Resolver Pa Vehicle Network Toolbox Pal xPC Target P Simulink Design Optimiza a Simulink Verification and Synchro Resolver UEISIM Analog Output UEISIM Digital Input UEISIM PWM Output Serial UEISIM Analog Input UEISIM Counter Input UEISIM Digital Output Showing UElSim Library 35 UEISim User Manual A United Electronic Industries vY The High Performance Alternative 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 unit is volts Source Block Parameters UEISIM Analog Input S Function mask link Parameters layer O Minimum Range 10 Maximum Range 10 Channel list 10 Input Mode Single Ended Sample Time DU e layer The Id of the analog input layer associated with this block layer Ids start at 0 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 fro
64. s the hardware clock e Debounce input count the minimum pulse width to accept on counter input Value is specified in 66Mz ticks Smaller pulses are rejected e Debounce gate count the minimum pulse width to accept on gate input Value is specified in 66Mz ticks Smaller pulses are rejected The type of the signals connected to the CI block must be uint32 You can use Simulink s Data Type Conversion block to convert your signal 5 7 PWM Output block The PWM output block generates a continuous train of pulses out of the specified timer Use one instance of this block for each timer you wish to use as output The data type is uint32 This block contains two inputs The new low state width in clock ticks and the new high state width in clock ticks of each pulse 43 UEISim User Manual y N United Electronic Industries The High Performance Alternative Le Wi Sink Block Parameters UEISIM ueisim co write mask link Generate PWM from counter layers such as the CT 601 Parameters source Internal Clock e initial low count 1000 initial high count 1000 E inverted output Sample time e layer The Id of the digital output layer associated with this block layer Ids start at 0 with the top layer e port The port to read from source The source of the clock signal Possible values are Internal Clock and External Pin initial low count The initial width of each pulse
65. t of the message bit 0 and can be in the range 0 63 e bit length the number of bits used to represent the signal in the 8 bytes data payload 5 12 4 1 Intel format The least significant bit position Isb is specified as the start bit for signals in Intel format The bits in an Intel CAN message are always counted as described in the layout below 64 e wv The High Performance Alternative United Electronic Industries UEISim User Manual Bit number within a byte 7 5 6 4 3 2 1 0 7 6 5 4 3 2 1 0 0 X X X X X gt lsb 15 14 13 12 11 10 9 8 1 msb lt X X X 23 22 21 20 19 18 17 16 2 31 30 29 28 21 26 25 24 3 39 38 37 36 35 34 33 32 4 47 46 45 44 43 42 4I 40 5 55 54 53 52 51 50 49 48 6 63 62 61 60 59 58 57 56 7 ogessoul NV UYIM Joquinu 2189 In the example above a ten bit long message begins at start bit 2 the Isb of the LSB is at position 2 counting upward from the start of the message below 5 12 4 2 Motorola format The start bit specifies the position of the least significant bit in Motorola format The bits in a Motorola CAN message are always counted as described in the layout 65 PZ vY The High Performance Alternative United Electronic Industries UEISim User Manual Bit number within a byte 7 5 6 4 3 2 1 0 7 6 5 4 3 2 1 0 0 15 14 13 12 11 10 9 8 1
66. t ports There is always one output port The output value is ready to be connected to the CAN Send block 5 12 4 4 CAN unpack block Unpack one CAN message into multiple signals Signals are decoded using data type and position of bits in message 67 UEISim User Manual A United Flectronic Industries The High Performance Alternative 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 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 e Endianness A cell array containing the endianness of the signals to unpack e 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 Receive block It also displays an output port for each signal to unpack from the CAN message 5 12 5 CAN examples The following example configures two ports on the same CAN 503 sends frames with Ids 102 and 258 out of port 0 and receives frames with Ids 102 and 2
67. t when enabled can take any of the following values 63 UEISim User Manual p ow United Flectronic Industries vY The High Performance Alternative e 0 No CAN frame was received the signal output contains the data of the last received frame e A new CAN frame was received e A bus error occurred e 2 Buffer overrun The receive block is not executed often enough to keep up with the pace of incoming frames 5 12 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 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 e endianness the endianness of the signal possible values are intel for little endian Bits are counted to the left from the start bit Bytes are also counted to the left motorola for big endian Bits are counted to the left from the start bit Bytes are counted to the right alorotom for backward Motorola format Bits are counted to the left from the start bit Bytes are counted to the right and the byte counting sequence is reversed e start bit defines where the least significant bit of a signal s least significant byte is inserted into the message It is always even for big endian signals counted from the star
68. te at which the block executes during simulation it also sets the hardware ADC clock 5 0 2 LVDT Simulation block The data type of the value written to each configured channel is double The unit of the value to simulate is a displacement and depends on the sensor sensitivity For example if you set sensor sensitivity in mV V mm the values written to the block must be specified in millimeters With sensitivity set to 1000 mV V mm the values written to this block must be in the range 1 1 to simulate an LVDT sensor with a full range of 1mm to 1mm 48 UEISim User Manual y N United Flectronic Industries The High Performance Alternative Wi Sink Block Parameters UEISIM LVDT Simulation ueisim_ailvdt_read mask link Configure and read data from LVDT channels Parameters layer 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 e layer The Id of the analog input layer associated with this block layer Ids start at 0 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
69. the model 71 UEISim User Manual United Flectronic Industries The High Performance Alternative velsim 2429 setup mask link Configure ports on ARINC 429 layers such as the 429 566 Parameters Port 0 Md Buffer Size 100 Speed 100000 Parity None Filtered labels layer The Id of the ARINC 429 layer associated with this block layer Ids start at 0 with the top layer port The Id of the port to configure port Ids start at 0 buffer size the size of the internal buffer allocated to store incoming words until they are actually received in the model speed The speed in bits s used on the ARINC 429 bus connected to this port parity The parity setting Set it to None to have full control of the parity bit Filtered labels A sequence of labels to program the hardware filter Matching words will be rejected by the ARINc 429 port 5 13 2 ARINC 429 Send block Send a group of words to one ARINC 429 TX port You can create multiple instances of this block to send multiple groups of words at different rate 72 UEISim User Manual y N United Electronic Industries vY The High Performance Alternative r Wi Sink Block Parameters UEISIM ARINC 429 Send ueisim ar429 send mask link Send data over ARINC 429 TX port Parameters Layer 4 Port 0 Sample Time 0 01 e Layer The Id of the ARINC 429 layer
Download Pdf Manuals
Related Search
Related Contents
Edsal AC300A Instructions / Assembly Philips External Hard Disk SPD8020CC ページ15 EB-XS100LP MODE D EMPLOI Niles Audio DS00420ACN Home Theater System User Manual libretto installazione, uso e manutenzione box ラウンドタイプウォーターサーバー_取扱説明書 Origin Storage 256GB MLC SATA Copyright © All rights reserved.