Home

UEISim User Manual 2.9 - United Electronic Industries

image

Contents

1. eene 14 4 Using UEISim add on from MATLAB Simulink 15 LUMMEE SI uh VOUT Doe ET I5 4 2 Create an executable from the model recreo reti potentiae eene 18 Z5 Running the sullo nenpei ve petat ian aS Rx Fes toe dis pt ER oH Resa sirieias 23 AOA Bronte Command le 2nd pie a E RI NETTE MESURE 23 4 3 2 Using the UEISIM desktop ADI ien xe FP RR D nn P Se RR INE die uad 23 4 4 Tuning step size and sample time uius ceceses etus csasask e e ENSE deed ege 23 45 Remote Monitoring ain evasiaceacen abcestanssa tend iastagenvasedoas nE E ER Ea SEEKER ege 24 4 5 1 Remote monitoring with UEISIM desktop eee 24 4 5 20 Remote monitoring with Simulink in external mode 30 4 6 Logging Data to Hle eiie ee ebe 33 4 7 Running a simulation automatically after boot 36 5 UEISIM Blockset rm snis 38 Sel Analog Taput Ploski E 38 5 2 Thermocouple Input block oi g t 39 5 3 Analog Output block EE 41 Sr NER cine doles e 42 2 9 Digital Output block ores oem atop ian n RE EERE EEA 42 5 0 Counter TEE 44 3 RR TE 46 S5 JCPHEPE eegenarteg 48 D MNT AE EE 49 39 1 LVDIImp tblo6OE iate ceded eg 49 5 9 2 LVDT Simulation BIOCE oiii oi edis o bet toni M pep RET odi paie oue tu tees ien 51 240 SYNCHRO Eelere eegen 23 UEISim User Manual a United Flectronic Industries The High Performance Alternative 5 10 1 Synchro Resolver Input
2. 100 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 86 UEISim User Manual p x United Flectronic Industries vY The High Performance Alternative 5 14 Network communication 5 14 1 UDP UDP communication blocks give access to the Ethernet port Sending and receiving UDP packets to from the Ethernet port is done using the UDP send or UDP receive block Die amp EISIM UDP Send oats Port 64000 UEISIM UDP Send UEISIM UDP RecER P Port 64000 UEISIM UDP Recv Ready 100 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 87 E vY UEISim User Manual United Electronic Industries The High Performance Alternative r Wi Sink Block Parameters UEISIM UDP Send ueisim udp send mask link Send data over UDP network to a specified remote machine Parameters Host name 192 168 100 1 UDP Port 10290 Buffer Size 1024 Byte Order BigEndian Sample Time 0 01
3. Cassis s Host name The name or IP address of the destination host UDP port The port to send to must be gt 1024 and lt 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 88 a United Electronic b d Industries The High Performance Alternative Le Wi Source Block Parameters UEISIM UDP Recv f amp o 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 Sample Time 0 1 Byte Order BigEndian UDP port The port to receive from must be 1024 and 65535 Buffer size Size in bytes of the network buffer UEISim User Manual 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
4. 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 73 UEISim User Manual y x United Electronig Industries The High Performance Alternative File Edit View Simulation Format Tools Help Dice t Bles TRS yh xa d EB UEISIM CAN Setup device 0 port 0 UEISIM CAN Setup1 a a UEISIM CAN Receive EISIM CAN Unpack 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 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 74 y x United Electronic Industries vY The High Performance Alternative D File Edit View Format c d sce UEISIM ARINC 429 Setup device 0 port 0 UEISIM ARINC 429 Setup 5 ISIM ARINC 429 Send device 0 port 0 UEISIM ARINC 429 Send EISIM ARINC 429 Regeive device 0 port 0 UEISIM ARINC 429 Recv EISIM ARINC 429 Encode label 2 UEISIM ARINC 429 Encode EISIM ARINC 429 Decode label 2 100 5 13 1 ARINC 429 Setup block Configure communication settings on a given ARINC 429 port Help Wii Library ueisim lib ARINC 429 Lal L da cl UE
5. 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 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 output ports 91 UEISim User Manual y x United Flectronic Industries 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 o
6. 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 89 E vY The High Performance Alternative UEISim User Manual United Electronic Industries ueisim_tcp_send mask link Send data over TCP IP network to a specified remote machine Parameters TCP IP Port Host name 192 168 100 1 1080 Buffer Size 1024 oe order Sample Time 0 1 Lox J Cancel Help Apply 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 90 UEISim User Manual p x United Electronic Industries
7. 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 p x United Electronic Industries vY The High Performance Alternative 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 UEIPAC Analog Output UEIPAC Analog Input NIE Time offset 0 You can use the scope block to visualize any signal while the model is executing Scope only displays 1000 samples per signal to change the scope s maximum signal duration e Select the menu option Code External Mode Control Panel e Click on the Signal amp Triggering button e Change the duration field in the Trigger options 32 UEISim User Manual y x United Electronig Industries The High Performance Alternative OH test fast ai External Signal amp Triggering S Signal selection go eI EE a eee ui LL V Select all x Scope test_fast_ai Scope Clear all Trigger options Source manua
8. 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 oye So port speed 500 kBps X frame format Standard 11 bit acceptance code hex2dec 0 acceptance mask hex2dec fF initialization command 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 or Extended acceptance code 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 65 UEISim User Manual y x 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 nex2dec 04030201 5 12 2 CAN Send block Send a group of CAN frames to one CAN port You can create multiple instance o
9. 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 SS UEISIM Setup pw United qQ 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 space UEISI 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 UEISim User Manual p x United Electronic Industrie
10. cell array 1 uint32 double double endianness cell array intel intel intel Clees 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 93 UEISim User Manual p x 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 with 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 Le Wi ai monitor i be USO A LEE 5 3 44 P File Edit View Simulation Format Tools Help Dee 5868 eo E umm TE Analog Input EI E device 0 EISIM UDP Send sts Port 10290 UEISIM Analog Input UEISIM UDP Send i
11. e J e layer The Id of the analog input layer associated with this block layer Ids start at O with the top left layer 56 UEISim User Manual p x United Flectronic Industries The High Performance Alternative 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 or whether excitation is supplied externally e Channel vector Array of channels to simulate from e Sample Time The rate at which the block executes e Transformer Ratio Vector Sets the ratio to apply to simulated waveforms amplitude For example if excitation amplitude is 10vpp and ratio is 0 5 The simulated waveforms amplitude will be 5vpp e Phase Delay Sets the phase delay between the excitation and the simulated waveforms Value is specified in number of samples of the simulated waveform For example if the card is using 32 points to output one waveform cycle a phase delay of 8 is equivalent to a 90 deg phase shift 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 Sending and receiving
12. 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 format and labels 102 and 103 Port 6 receives those words and decodes them back using the same parameters than the encode block 85 UEISim User Manual y x United Electronig Industries The High Performance Alternative File Edit View Simulation Format Tools Help Dee S t BB eas Taa m foo Noma Ge he UEISIM ARINC 429 Setup UEISIM ARINC 429 Setup device 4 port 6 device 4 port 0 UEISIM ARINC 429 Setup1 UEISIM ARINC 429 Setup EISIM ARINC 429 Encode label 102 UEISIM ARINC 429 Encode EIS 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 I EISIM ARINC 429 Regeive UEISIM ARINC 429 Decode device 4 port 6 EISIM ARINC 429 Decode UEISIM ARINC 429 Recv label 103 L UEISIM ARINC 429 Decode1
13. ready to be executed in the tmp directory on the UEISim 22 UEISim User Manual p x United Flectronic Industries The High Performance Alternative 4 3 Running the simulation 4 3 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 4 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 4 3 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 4 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 0000
14. 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 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 Hi
15. 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 ww Function Block Parameters UEISIM ARINC 429 Encode ueisim ar429 encode mask link Encode ARINC word to send Parameters Label 102 BCD Resolution 0 1 LSB 11 SDI 0 3 0 SSM 0 3 0 SS D 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 79 a UEISim User Manual United Electronic 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 O 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 complemen
16. 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 layers 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 SD card Restoring or initializing a new SD card can only be done on a Linux 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 sequence of commands to partition format and initialize a new SD card 12 UEISim User Manual p x United Flectronic Industries 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 neede
17. 85 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 x United Flectronic Industries 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 5 Remote monitoring 4 5 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 applicatio
18. BLOC i eeiteuiegeseggert ibsceectaiccceaesteceveatieesd renge 53 5 10 2 Synchro Resolver Simulation block esses 55 Dells Seral port COMMUNICA OM ged ense PEE ba E EESE 57 SLL eleganten 58 5 11 2 Serial Send block ccce ode de deed ea sao ero ue 60 S113 Serial Receive block Nee TN HARI ETE tn 61 MEE MEC aci cin o D 62 5 12 CAN bus commumteaton sese eset eset ases eie 63 SII CAN Setup block EE 64 2412 2 CAN Send Blog EN 66 5 12 3 CAN Receive bock 67 5 12 4 Utility DIOCKS 68 SAQA Ds Wnt te EE 68 5124 2 Motorola formats sessiossa e a aes 69 5 12 43 CAN pack BICC E 70 2 124 CAN KE Me 71 5 125 CAN examples PERITO ULT 12 5 13 ARINC 429 commumeaton ener nnne nenne tienne 74 5 13 1 ARINC 429 Setup Eeer 75 5 13 2 ARINC 429 Send BIOCK sssecsesssecsecsssescessssesoseetsssosenssscseecsssssocessans 76 5 13 3 ARINC 429 Receive bock 77 5 13 4 ARINC 429 Encode block 79 w EENG 108 EE 79 51342 EE 80 e BEE d E E AE 82 SE ER EE 83 5 13 5 ARINC 429 Decode bock 83 SBSE BCD EE 83 MES V EE E 84 DADS s KEE 84 AR SEMEM o eeree HM 85 Dil Ss ARINGUSI20 exatileliossene odes goat teieisa det oit etes oc iie E aid 85 5 14 Network commumiceanon emere enne eene nenne thin n nns 87 Dil lig D D 87 5 14 11 UDP Send block uet Peto a ENN 87 5 14 1 2 UDP Rec
19. 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 blocks 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 ExtModeT
20. ISIM RAM disk d ramdisk gz new uRamdisk x y z Image Name UEIPAC RAM disk Created Wed Apr 11 17 32 41 2012 Image Type PowerPC Linux RAMDisk Image gzip compressed Data Size 2425561 Bytes 2368 71 kB 2 31 MB Load Address 0x00000000 Entry Point 0x00000000 3 3 3 2 Upload RAM drive image to flash Uploading the RAM disk image must be 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 1 Connect a serial cable to your UEISIM and start a serial terminal software with communication settings set to 57600 8 N 1 2 Copy the RAM drive image uRamdisk x y z file to the root directory of your TFTP server 3 Power up the UEISIM and press any key to enable the boot loader command line You should see the prompt gt 4 Configure the UEISIM s IP address gt setenv ipaddr IP address of the UEISIM gt 5 Configure U Boot to use your host PC as TFTP server gt setenv serverip IP address of your host PC 14 UEISim User Manual p x United Flectronic Industries The High Performance Alternative 6 Upload RAM disk gt tftp 4000000 uRamdisk x y z 7 Copy the RAM disk to flash gt erase fe200000 fe7fffff gt cp b 4000000 fe200000 S filesize 8 Update bootargs variable to tell the kernel that its root file system is a RAM disk gt s
21. ISim 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 the model 75 UEISim User Manual p x United Electronic Industries The High Performance Alternative Block Parameters UEISIM ARINC ueisim_ar429_setup mask link Configure ports on ARINC 429 layers such as the 429 566 Parameters Buffer Size 100 Speed 100000 Filtered labels e layer The Id of the ARINC 429 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 e buffer size the size of the internal buffer allocated to store incoming words until they are actually received in the model e speed The speed in bits s used on the ARINC 429 bus connected to this port e parity The parity setting Set it to None to have full control of the parity bit e Filtered labels A sequence of labels to program the hardware filter Matching words will be rejected by th
22. 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 L3 xpctargetert tlc xPC Target ERT v lt li Full name amp 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 United Electronic Industries The High Performance Alternative Data Import Export 1 Optimization Diagnostics 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 United Electronic b d Industries The High Performance Alternative r Configuration Parameters untitled Configuration Active x Select iV Download to UEISim J p Solver e Data Import Export UEISim IP address 192 168 100 2 Optimization Mud S Diagnostics V Display Timing Informati
23. RL http 192 168 100 2 1235 ueisim html 29 UEISim User Manual y x United Electronig Industries The High Performance Alternative 5 Welcome to UEISIM x V 4 gt CQ 192168 1002 1235 ueisim html Microsoft Exchange I5 laposte net adresse Stop Expand Al Colapse Al demo ai Y Signal Conversion Scan 7 54333 7 53196 7 54416 7 5331 Y UEISIM Analog Input Stats AvgTET 0 0000855513 MaxTET 0 000454 MinTET 0 000082 ModelExecutionTime 98 4592 Overloaded 0 SampleTime 0 001 StopTime 1 4 5 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 x United Electronic 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 Dc E 88 c Connect to target Simulation stop time Simulation mode UEISIM
24. Target Time State Output gt Code Generation Input t u W Time tout Format Array States xout 7 Limit data points to last 10000 Output yout Decimation 1 Final states xFinal Save complete SimState in final state ignals Signal logging logsout Signal logging format Dataset Configure Signals to Log Data Store Memory v Data stores dsmout Save options Save simulation output as single object out Record and inspect simulation output The circular buffer containing the latest data points is written to file at the end of the simulation run The model prints a notification message if the circular buffer wrapped the simulation ran more steps that the buffer can hold Executed 52093 iterations in 26 046967 s 1999 964142 updates per sec Log variable tout has wrapped 4 times using a circular buffer of size 12000 Log variable yout has wrapped 4 times using a circular buffer of size 12000 created test fast ai mat 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 35 UEISim User Manual y x United Electronig Industries The High Performance Alterna
25. 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 44 UEISim User Manual y x United Electronig b d Industries The High Performance Alternative ueisim_ci read mask in 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 O 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 45 UEISim User Manual p x United Flectronic Industries 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
26. The following example sends simulated data and receives it too IP address must be set to 127 0 0 1 94 UEISim User Manual a United Electronic QY uses The High Performance Alternative File Edit View Simulation Format Tools Help D eH el ie Rd m foo Noma E UEISIM UDP Reo Port 64000 UEISIM UDP Send UEISIM UDP Recy The following example receives 44 bytes from UDP port 64001 and decodes them as one uint32 one double and a vector of 4 doubles se Echt View Simulation Format fouls Help Diaugd rce eo42 2c 7h xa EXumBd 1347308405 0826 UEISIM UDP Recent Port 64001 UEISIM UDP Recv 95 UEISim User Manual p x 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 model hangs or takes too long to complete a step f ink Block Parameters UEISIM Watchdog pem ueisim_watchdog mask link Configure Watchdog Parameters Timeout ms Show Reset Port Sample Time 0 1 ok Cae Help 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
27. UEISim User Manual y x United Flectronic Industries The High Performance Alternative UEISim User Manual 2 9 November 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 a United Flectronic Industries The High Performance Alternative Table of contents 1 Utd m 5 2 Software Lmstall aos e 5 ekg ccc m 5 2 4 Install UEISim Software for Windows etit ot eorr tent especie ipuue 5 2 3 Install UEISim Software for DNX uu pe ep Prrid a DR EPA HII NI aero 9 3 Configuring the UELDSI oorr tha eoPEH px CHEQUE YA YE RE FPOMEE FE IRAE RR VERRE E UE 9 31 Connecting the serial port console uere ertt Leere reete sp deideca 9 3 2 Configuring the IP SEQEBSS coo eege ege 10 SEC NEM DU S EE 11 3 3 Booting the SD card with system partition read only 11 3 3 2 Restoring or creating a new SD card sessseeeeeeee 12 3 3 3 Booting from a RAM drive no SD card needed 13 3 3 3 1 Customize the RAM drive image sisse eroi eta irc catepe eo viua pe tva iaa 15 3 3 3 2 Upload RAM drive image to flash
28. als 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 Overloaded 1 is max task execution time ever becomes greater than the sample time 0 otherwise 26 UEISim User Manual y x United Electronig Industries 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 K Pal Signal Properties Signal name Scan Signal name must resolve to Simulink signal object Show propagated signals Storage class ExportedGlobal Y Storage type qualifier 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 valu
29. ase 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 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 HH 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
30. 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 The Thermocouple Input block acquires data from the channels specified in the channel list Each temperature measurement is available as a separate output The data type is double unit is same as the temperature scale specified in the block parameters 39 UEISim User Manual y x United Electronic QY usos The High Performance Alternative an ueisim_tc_read mask link Configure and measure temperature from thermocouples connected to an analog input layers Parameters layer 0 Minimum Temperature Range vector 100 Maximum Temperature Range vector 100 Channel vector 0 Thermocouple Type vector K Temperature scale vector c CX Type CIC Value 25 0 Input Mode 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 e Minimum Range The minimum temperature expected at the input 40 UEISim User Manual a United Flectronic Industries The High Performance Alternative Maximum Range The maximum temperature expected at the input Channel list Array of c
31. bel 102 Sg LSB 11 29 SDI 0 3 0 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 ifin the range 0 to 3 the block sets the SSM field of the word sent over the output port 82 UEISim User Manual y x United Flectronic Industries The High Performance 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 8 Wi Function Block Parameters UEISIM ARINC 429 Decode ueisim ar429 encode mask link Encode ARINC word to send Parameters Label 102 Data Type BCD z BCD Resolution 1 0 LSB e label The 8 bit value t
32. bytes to from a port is done using a send or receive block 57 UEISim User Manual p x United Electronic Industries The High Performance Alternative File Edit View Help D gg Entersearch term j Library UEISim Library Serial Search Results none 4 P e 2 Real Time Workshop Em g RW Signal Processing Blockset TA RW Simulink 3D Animation device 0 pont f Ml Simulink Control Design e M Simulink Design Verifier e Simulink Extras UEISIM Serial Receive WW Simulink Verification and cEISIM Serial Send WW Stateflow ward UEISIM Serial Send IBM UEISim Library i CAN UEISIM Serial Setup device 0 port0 UEISIM Serial Setup Synchro Resolver UDP ER xPC Target Showing UElSim Library Serial 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 Block Displays 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 58 UEISim User Manual
33. d 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 3 3 3 1 Customize the RAM drive image Customizing the RAM drive image is necessary to add your model and tweak the startup script if you wish to start the model automatically This can only be done on a Linux PC You might need to install the uboot mkimage utility For example under Ubuntu or Debian Ssudo apt get install uboot mkimage 1 Extract compressed RAM disk image from ulmage file The following command converts the file uRamdisk x y z to ramdisk gz dd if uRamdisk x y z bs 64 skip 1 of ramdisk gz 21876 1 records in 21876 1 records out 2 Un compress RAM disk image gunzip v ramdisk gz ramdisk gz 66 6 replaced with ramdisk 3 Mount RAM disk image mount o loop ramdisk mnt 13 UEISim User Manual A United Flectronic Industries The High Performance Alternative Now you can add remove or modify files in the mnt directory Once you are done you can re pack the RAM disk into a U Boot image 1 Un mount RAM disk image umount mnt 2 Compress RAM disk image gzip v9 ramdisk ramdisk 66 6 replaced with ramdisk gz 3 Create new U Boot image mkimage T ramdisk C gzip n My UE
34. e 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 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 output when enabled can take any of the following values 67 UEISim User Manual p x United Flectronic Industries 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 1 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
35. e 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 76 UEISim User Manual a United Flectronic Industries 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 z Port 0 Sample Time Layer 4 0 01 9 J Cancel l Help Apply e Layer The Id of the ARINC 429 layer associated with this block layer Ids start at O 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 77 PS vY T
36. e following software is installed on your computer e Matlab R2009a R2009b R2010a R2010b R2011a R2011b R2012a R212b R2013a R2013b R2014a R2014b 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 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 Flectronic Industries The High Performance Alternative UEISIM Setup nite welcome to the UEISIM Setup Flectromie 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 make 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 UVEISIM Setup E diniled License Agreement b d 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
37. ed 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 receive 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 if both ports are connected with a NULL modem cable 62 UEISim User Manual y x United Electronic b d Industries The High Performance Alternative m Itl 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 c
38. eive block 88 514 2 TCP IP Cheit iarere tiean aaaea iieiaei binan iiias 89 S1421 TCP IP Se d leren 89 5 14 2 2 TCP IP Receive bock 90 514 3 Utility DIOCKS EE 92 314 31 UBISIM Pack bloCK uit er Ee Co eec on ebd 92 UEISim User Manual p x United Flectronic Industries The High Performance Alternative 3 14 3 2 WEIS UM Unpack leste erugeet iebeek ugeed eege 93 5144 BK EE 94 2 15 Miscellaneous unie obe eir b He bouis De E E ipai eas 96 SEE Watehd g EE t 96 UEISim User Manual p x United Flectronic 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 directly on the UEISim hardware You can access all 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 th
39. es in this case 27 p x United Electronic Industries The High Performance Alternative tcp 192 168 100 2 1234 Refresh Rate updates s 50 Expand all signals and parameters Parameters El demo ai 1 Gain Gain ZI Signals E i demo ai El Signal Conversion Scan 7 5434 7 53264 7 54355 7 53165 ZI UEISIM Analog Input 7 5434 7 53264 7 54355 7 53165 8 75202e 05 0 000258 8e 05 22 2391 0 0 001 1 UEISim User Manual 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 10 o IL eme 28 UEISim User Manual p x United Electronig 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 Expand all signals and parameters 7 5441 75 3188 7 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 U
40. esting 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 Flectronic Industries The High Performance Alternative aUEIPACIPAddress 192 168 15 200 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 ueisim bat lots of compiler output Created executable ueisim Downloading ueisim to UEIPAC at 192 168 15 200 Downloaded ueisim gt gt The simulation executable is now
41. etenv bootargs console ttyS0 57600 root dev ram0 rw 9 Change boot command to unpack the RAM disk in memory before starting the kernel gt setenv bootcmd bootm fe000000 fe200000 10 Save environment to make those changes permanent and reset gt saveenv gt reset 4 Using UElSim add on from MATLAB Simulink 4 1 Convert your model Let s start with an existing model that process some input signal and view the output on a scope 15 UEISim User Manual p x United Electronig Industries The High Performance Alternative ueisim File Edit View Simulation Format Tools Help Dee Aar TIR S fioo 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 16 UEISim User Manual y x United Electronig Industries The High Performance Alternative r F1 RW Simulink Library Browser e LAJ elle File Edit View Help OD ce Enter search term 40 Library UEISim Library Search Results none be rare WW Simulink 3D Animation Soe ICP IEPE SW Simulink Control Design RW Simulink Design Optimiza s i ynchro T SES SE Resolver RW Simulink Verification and 1 Anaiag Ont H Input ESCH Output p a System Identification Tool T Sai UEISim Library UEISIM Counter UEISIM Digital H ga t H cevced Input Input i a Stateflow UEISIM A
42. f 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 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 Cl mm m 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 92 UEISim User Manual p x 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 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
43. f 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 0 01 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 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 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 66 UEISim User Manual a United Flectronic Industries 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 pm hd port 1 x arbitration ids 12 32 sampletime 0 00025 E show status port Cu C i
44. foreground killall SIGINT ueisim 37 UEISim User Manual y x United Electronic b d Industries The High Performance Alternative 5 UEISIM Blockset File Edit View Help Pa ie aa Enter search term Libraries Instrument Control Toolbox Pa Simulink 3D Animation H Pa Simulink Coder t Pa Simulink Control Design Pa Simulink Design Optimiza H Pa Simulink Design Verifier H a Simulink Extras a Simulink Verification and UEISIM Analog Input UEISIM Counter Input UEISIM Digital UEISIM Digital Input Output UEISIM PWM i i Synchro Resolver Pa Vehicle Network Toolbox l Pal xPC Target Showing UEISim Library 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 38 a vY The High Performance Alternative 5 2 United Electronic Industries Source Block Parameters UEISIM Analog Input S Function mask link Parameters layer UEISim User Manual Minimum Range 10 Maximum Range 10 Channel list 0 Input Made Single Ended Sample Time 0 01 Thermocouple Input block layer The Id of the analog input layer associated with this block layer Ids start
45. ge Parameters data types cell array EX 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 input 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 71 UEISim User Manual p x 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 t
46. hannels to acquire from e 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 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 T channels 0 Sample time 0 e 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 e Sample Time The rate at which the block executes during simulation it also sets the hardware DAC clock 41 UEISim User Manual y x United Flectronic Industries The High Performance Alternative 5 4 Digital Input block The Digital Input block acquires the digital state of the channels specified in
47. he High Performance Alternative UEISim User Manual United Electronic Industries Wi Source Block Parameters UEISIM ARINC 429 Recv ueisim ar429 receive mask link Receive data from ARINC 429 RX port Parameters Layer 4 Port 6 Max Word Count 5 Sample Time 0 01 Show Status Port oa Cancel Help 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 which 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 20 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 78 UEISim User Manual p x United Electronic Industries The High Performance Alternative e 2 RX Buffer overrun The receive block is not executed often enough to keep up with
48. he 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 O and receives frames with Ids 102 and 258 from port 1 If port O and port are connected to the same CAN bus you will receive what you send 72 UEISim User Manual United Electronic Industries The High Performance Alternative can_loopback DER File Edit View Simulation Format Tools Help DISAS Seales Ale b foo Noma Eg OG UEISIM CAN Setup UEISIM CAN Setup device 4 port 1 device 4 port OQ UEISIM CAN Setup UEISIM CAN Setup1 UEISIM CAN Unpack 102 102 weer Dn 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
49. hich the block executes during simulation it also sets the hardware ADC clock 5 9 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 unit 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 41mm 51 UEISim User Manual y x United Flectronic Industries The High Performance Alternative E WW Sink Block Parameters UEISIM LVDT Simulation ueisim ailvdt read mask link Configure and read data from LVDT channels Parameters 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 Cassel ze 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
50. k Td mask link Configure and read data from LVDT channels Parameters layer E Minimum Range vector displacement unit 10 Maximum Range vector displacement unit 10 Sensor 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 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 O with the top left layer 50 UEISim User Manual A United Electronic Industries vY The High Performance Alternative e Minimum Range vector The minimum value expected 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 LVDT s connected to each channel e Wiring Scheme vector The wiring scheme 4 or 5 wires used to connect LVDT s to each channel e Excitation Voltage vector The excitation voltage used to power LVDT s connected to each channel e Excitation Frequency vector The excitation frequency used to power LVDT s connected to each channel e External Excitation vector Specifies whether channel s provide excitation to LVDT s or whether excitation is supplied externally e Channel vector Array of channels to acquire from e Sample Time The rate at w
51. l low count The initial width of each pulse 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 47 UEISim User Manual p x 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 IEPE channels Parameters Minimum Range vector g 10 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 48 UEISim User Manual p x United Flectronic Industries The High Performance Alternative 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 minimu
52. l v Mode normal v Duration 10000 4 Arm when connecting to target Trigger signal Path Element any Direction rising Level 0 Hold off 0 Help Apply 4 6 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 33 UEISim User Manual A United Electronic Industries vY The High Performance Alternative 73 untitled File Edit View Simulation Format Tools Help D Ge HS D UEISIM 4 Digital Input UEISIM Digital Input Simulink uses a circular buffer in RAM to store the most recent values The default size for the circular buffer is 1000 You change this value in the Data Import Export configuration dialog The maximum size depends on the number of signals logged and the memory requirements of the model so that it can all fit in the UEISIM RAM 34 UEISim User Manual United Electronic Industries The High Performance Alternative Configuration Paramet test tost Zerf Select Load from workspace Solver Data Import Export gt Optimization 1nitial state xInitial gt Diagnostics Hardware Implementation Save to workspace Model Referencing gt Simulation
53. m value expected 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 49 UEISim User Manual y x United Electronic QY usos The High Performance Alternative I SIM LVDT Input iis d
54. n 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 UEISimDesktop 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 p x United Electronic Industries vY 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 File Edit View Display Diagram Simulation Analysis Code Tools Help PE A B ER e ES s jdemo ai Signal C onvers ion UEISIM Anslog Input Here is what this model signals and parameters look like in the generic client 25 UEISim User Manual p x United Electronig Industries The High Performance Alternative Re Shared Data Client Server Name tcp 192 168 100 2 1234 Refresh Rate updates s 50 V Expand all signals and parameters El UEISIM Analog Input Z 7 54294 7 53051 7 54248 7 53142 8 67356e 05 0 000256 8 3e 05 11 7892 0 0 001 1 The sign
55. nslog am UEISIM Anslog UEISIM Digital 1 u UEISIM PWM PAM Osput deuct Output i i Synchro Resolver EA Video and Image Proces Showing UElSim Library 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 E File Edit view Simulation Format Tools Help Dic OSG st BOeleort Re gt fioo Normal UEISIM Analog Output UEISIM Analog Output UEISIM Analog Input 17 UEISim User Manual p x 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 2 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 a 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
56. o compare with the label field of the word received on the input e data type data type selector 83 UEISim User Manual y x 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 r Wi Function Block Parameters UEISIM ARINC 429 Decode ueisim ar429 encode mask link Encode ARINC word to send Parameters Label 102 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 84 UEISim User Manual y x United Flectronic Industries The High Performance Alternative r W Function Block Parameters UEISIM ARINC 429 Decode ueisim ar429 encode mask link Encode ARINC word to send Parameters Label 102 Data Type Discrete z LSB 11 ox Cancel Help Apply e label The 8 bit value inserted in the
57. ode vector Specifies whether a Synchro or a Resolver is connected to each channel e Excitation Voltage vector 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 54 UEISim User Manual p x 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 55 UEISim User Manual a United Electronic QY usos The High Performance Alternative ueisim_aosyncres_write mask link Configure and read data from Synchro Resolver channels Parameters Mode vector 0 for Synchro 1 for Resolver 1 Excitation Voltage vector RMS 5 0 Excitation Frequency vector Hz 400 0 External Excitation vector 0 for disabled 1 for enabled 1 Channel vector 0 Sample Time 0 01 Transformer Ratio vector 0 lt ratio lt 2 1 0 Phase Delay wfm points 11 ok lee wel
58. ommunication 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 63 UEISim User Manual p x United Electronic Industries The High Performance Alternative Simulink Library Browser File Edit View Help D E 4a d Utilities ueisim_lib C4N Utilities Al Simulink Wi Data Acquisition Toolbox UI WW Real Time Workshop KR Real Time Workshop Embedded Coder sz UEISIM CAN Receive WW Simulink Extras Wi Stateflow JCT UEISIM CAN Send BA UEISim Library Pr CAN zone UEISIM CAN Setup 2 Utilities WW virtual Reality Toolbox M 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 Block Displays 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 64 PN UEISim User Manual United Electronic b d Industries The
59. on P Hardware Implementat Execute model in hard real time file I O not supported Model Referencing S Simulation Target Remote monitoring Code Generation ONE UEISIMDesktop r Comments P Symbols P Custom Code Debug Interface ER UEISim options CH r A ox 1 cancel mee Apy Download to UEISim Check this 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
60. 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 start 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 68 a 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 X X X X X gt Isb 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 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 UA Joq
61. ort 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 60 UElISim User Manual y x United Electronic Industries vY The High Performance Alternative Use the mux block to combine multiple signals that needs to 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 Source BIOC TE OT mask link Receive data from serial port Parameters terminator n 2 bre ort sample time 0 01 E show status port 61 UEISim User Manual p x United Flectronic Industries 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 receiv
62. ponds to the state of one output line Sink Block Parameters UEISIM Digital Output S Function mask link Parameters layer E channels Sample time 0 e layer The Id of the digital output layer associated with this block layer Ids start at O 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 43 p x United Flectronie b d Industries The High Performance Alternative 73 untitled File Edit view Simulation Format Tools Help D oca Pulse Switch1 Generator Data Type Conversion4 Constant3 100 5 6 Counter Input block UEISim User Manual f 0 0 Normal q4 UEISIM 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
63. 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 96
64. s 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 LIEISIM 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 UEISIM Setup Unite Completing the UEISIM Setup Flectronic 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 p x United Flectronic 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 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
65. t 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 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 x United Flectronic Industries 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 ph
66. t binary notation then pack it into an ARINC word with the appropriate SSM SDI and Label parameter values 80 UEISim User Manual p x 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 UT BNR Range 100 LSB 11 SDI 0 3 0 SSM 0 3 0 ox Cancel Help Apply 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 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 O to 3 the block sets the SDI field of the word sent over the output port e ssm ifin the range 0 to 3 the block sets the SSM field of the word sent over the output port 81 UEISim User Manual p x United Electronic Industries 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 W Function Block Parameters UEISIM ARINC 429 Encode ueisim_ar429_encode mask link Encode ARINC word to send Parameters La
67. 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 Source Block Parameters UEISIM Digital Input S Function mask link Parameters layer E channels 3 Sample time D 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 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 42 UEISim User Manual y x United Flectronic Industries The High Performance Alternative The data type is uint32 Each bit of the value written to a given channel corres
68. tive 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 MATLAB 7 5 0 R2007b SEE File Edit View Graphics Debug Desktop Window Help Hea 42845 o n ry o CriDocuments and Settings Frederic My Y Shortcuts 7 Howto Add a What s New Current Directory Workspace Das mim a eee o Name Value Min E 1000x1 double 0 0100 rt_yout lt 1000 1 uint32 gt lt A Start Ready 4 7 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 f rc local This script is executed at the end of the boot sequence Make sure that the script will exit 0 on success or any other 36 UEISim User Manual p x United Flectronic Industries The High Performance Alternative value on error listlayers gt etc layers xml sync devtbl 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
69. uinu 2149 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 69 a 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 3 4 3 2 1 0 0 15 14 13 12 11 10 9 8 1 msb lt X X X X X 23 22 21 20 19 18 17 16 2 X X X X X gt Isb 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 UA Joquinu 2149 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 70 UEISim User Manual y x 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 messa
70. 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 52 UEISim User Manual p x United Flectronic Industries 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 or AI 256 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 33 UEISim User Manual p x United Electronic Industries vY The High Performance Alternative x d WM Source Block Parameters UEISIM Synchro Resolver 8 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 O with the top left layer e M
71. when this is checked e Sample Time The rate at which the block executes during simulation it also sets 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 46 UEISim User Manual p x United Electronic Industries The High Performance Alternative Wi Sink Block Parameters UEISIM PWM Output a ueisim co write mask link Generate PWM from counter layers such as the CT 601 Parameters Cc Cg Cc Com e layer The Id of the digital output layer associated with this block layer Ids start at O 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 initia
72. y x United Electronig Industries The High Performance Alternative 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 link 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 59 UEISim User Manual p x United Flectronic Industries vY 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 Y header terminator n byte order BigEndian X sample time 0 01 C Cmn ew i 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 p

Download Pdf Manuals

image

Related Search

Related Contents

Samsung ES25 Керівництво користувача  Mode d`emploi Rasoirs  MURALES - Construnario.com  BigTel 150 - Audioline  Orved Eco Vacuum.pm6  SPA_HLPRG_Installation_Manual_Moore_Industries  3,5“ floppy type 54 in 1 card reader / writer  "user manual"  service - LPT Home Page - HP LaserJet and Lexmark Parts  USHA+  

Copyright © All rights reserved.
Failed to retrieve file