Home
QUICK START MANUAL
Contents
1. SRAM 512KB FLASH 512KB Software MATLAB 6 1 or 6 5 Simulink 4 1 or 5 0 Real Time Workshop 4 1 or 5 0 Real Time Workshop Embedded Coder 2 0 or 3 0 Stateflow and Stateflow Coder 4 1 or 5 0 opt Notice Please make sure that MATLAB Simulink RTW and RTW Coder has been installed in your system before you setup this toolkit Otherwise it will not work properly Default IP setting IP 192 168 0 15 Gateway 192 168 0 1 Mask 255 255 0 0 If the default IP has a conflict with other devices in the network users can change the IP setting of the 1 8438 8838 by the S MMI buttons or from the GUI tool You can refer to Appendix C on 8438 8838 User Manual for detailed information OS amp Firmware Version OS MiniOS7 Ver 2 00 build 001 8E031103 img Firmware mat load exe Ver 1 00 To update the OS or firmware on the I 8438 8838 embedded controller please refer to Appendix A or B on 8438 8838 User Manual respectively for detailed information 8438 8838 Quick Start Manual Version 1 0 02 2004 2 Chapter 1 Hardware connection B MER SUPPLY LOAD PEER H ITLa Ubi ug cu 1 Connect the network cable to the RJ 45 connector and a hub Apply power 4 Vs GND to I 8438 8838 The DC power can be the value from 10V to 30V 3 Check the 5 digits of the 7 segment LED If the firmware is running the IP address of the 8438 8838 will be displayed 8438 8838 Quick Start Manual Version 1 0 02 2004
2. 03 597 3366 597 4955 www icpdas com High Quality Data Acquisition and Embedded Control Products Lieu ULE B ET DREPE O M 2 SyS TO Or Ori seris 2 Derion T Seine serrer M S 2 OSA Turo VOLSIOD iones It oU MOD mW omnii 2 Chapter LHardware eDnisdi E 3 Chapter 2 Create a model using SImullBk ss acessieeeccescenssesentnoccancessvossnavccteneeasastustevsces EP YE SEIR SEE UNE Eva ES RE SR E EEG FEEDS 4 Chapter 3 Build the proram Dy REW sisssssrssicrssiiosrencarserdsneneni neee rooi dader es cu saecsurs sr ENa rae Nonea aN e in a nesana 7 Chapter 4 Program downloading amp uploading ssssssceecccccssssccceocccsssscceeccocsssssccceocsosssscccecsssssssscceecssssssseeesoso 10 Addition Function for New Driver VeESIOD essei id nU DR NEUE NENDUNININ QUEEN IU KREDU TK NI N UN NER NEERN FINU RUNE 13 8438 8838 Quick Start Manual Version 1 0 02 2004 1 Introduction MATLAB Solution Toolkit is a useful tool for you to construct your controller model With it you can design your controller in MATLAB Simulink and convert it into an executable file easily and quickly Note This manual is written based on MATLAB Solution Toolkit version 1 0 0 System requirement Hardware Module ICPDAS 1 8438 8838
3. Manual Version 1 0 02 2004 9 Chapter 4 Program downloading amp uploading Now we can download the exe generated for testing Please follow the steps 1 Enter gui8000 at the MATLAB prompt to start the GUI Then specify the correct IP and Port of the 8438 8838 and press Connect Note The default listening port is 10000 TSU00 Series User Interface ns232 rcPaP Connect to ERE ES Fo 10000 set NET Message TCP IP Made Mat Connected 2 After the connection is established press Download to select the file and transfer it to the l 8838 control system ET Roza Connect 1o i fm mf oo Tf i x Sai KET coniu E Macs TET E tps BORED yq cf Ee untied FICO EKE JwinaudiolO CIDOOS EXE WinnovElockse edge imnoise FADOO6 EXE E VENERE B 1j STATUS Connect DOOL EX BPIRII EARE hed EE PIPAPL EXE I JDOOS EXE L FID EXE a eel XD POO EXE SSR re WA 8438 8838 Quick Start Manual Version 1 0 02 2004 10 3 As soon as the download process is completed successfully you can click Start to execute the program ISOU0 Series User Interface i BI X ns2 2 TCPAP Disconnect Connect to im ist ise o 15 Port 10000 set NET Download Upload Message Connection Is established Exit GUI FOLGE STATUS Conne
4. 3 Chapter 2 Create a model using Simulink 1 First start MATLAB and then click the Simulink icon onthe MATLAB toolbar File Edit View Web Window Help te a o 8 Current Directory COMATLABBpt work al Command Windows GA Hy Stade Base To get started select MATLAB Name Size Bytes Class LE Gar lel 2 Click a on the Library Browser s toolbar Windows only Simulink opens a new model window and then you can start to construct your own control model on the blank area of the window ie our LE ay Serer um o gt Yew de D gk a rm Centzamens neuem Ss D ng i hA Socr s i G a rae Simulink H Continuo 2H Dnscontin Discpele HH Look Up 4 Math Ops T h Hia Ms d je 1 hd 4 3 Copy a SYS INIT a DataToFile an l 8024 and an I 8017H block from the System AO and Al library to the model window respectively I Sumulmk Library Browser File Edit View Help D GE a res SYS INIT hatslize the 12000 contol system M Embedded Target for ICFDAS 1 8000 8H AI Ec TT ms Eo o ad I B017H iiti 1008 zaropling sce 5 annel analog inpet vnodule mhedded Target for ICPDAS 1 8000 dE al 4 Double click on the SYS_INIT block to open the dialog box On the dialog box that appears 8438 8838 Quick Start Manual Version 1 0 02 2004 4 select the correct t
5. arget hardware type from the field Target Hardware Type In this demo the target hardware is selected as l 8838 Block Parameters S YS INIT Xx 8838 54mulmk link mask Initialize the I 80 control system Parameters Target Hardware Typ 19939 Jj BENE ME tici e Up T rU x 5 Double click on the l 8024 block and then the dialog box appears To use channel 0 of l 8024 module enter 0 in the field Output Channel And select the slot as 2 Output Mode as Voltage Out Gain as 1 and Type of Value as Floating Block Parameters I BUZ4 Ax s Function mask 4 channel 14 bit analog output module Parameters Qrutput Mode s N MM Output Channel m Aao Crain a Type of Value Floating 6 Double click on the block of l 8017H enter 0 in the field Channel And select the Voltage range as 1 25V Slot as 3 and Type of Value as Floating Black Parameters I 8017H i Xl Function mask 14 bit LOUK sampling rate 8 channel analog input module Parameters Channel m Voltage range 25V 7 Double click on the block of DataToFile assign the Filename as f001 mat and Decimation as 1 8438 8838 Quick Start Manual Version 1 0 02 2004 5 Block Parameters DataToFile s Function mask Write tme and input to specified MAT file in row format Time iz in row l 8 Copy a Sine Wave block to the model window from th
6. ction Is established 4 Then the pane changes like the following figure S000 Senes User Interface IOl x ns232 rca Disconnect Connect to stop im 132 ies o 15 Port 10000 set NET Downoad LIplaad Message program is running Exit GUI d STATUS Connection ts established 5 After the time that you specified is up press Upload button to collect the data for further analysis After the upload process is completed successfully data will be saved as f001 mat which is the name you assigned in the DataToFile block 8438 8838 Quick Start Manual Version 1 0 02 2004 11 BEES SIT TR ri Reza mee lt i MATLAB Bie Edit View Web DE she Connect to ib Lari ri C WATLABGpS work SS All Files Lplaad S41 i eepron nat WAT file 06 H 20 05 15 FF leer roD net MAT file 05 5 20 01 44 FF root EE EXE File 05 H 20 02 06 FF m j E Hin a WET nears INL T I B TI mam aL EM 2T dar dd T oe a aa x zd EE 6 Double click on f001 mat and then enter plot tcpdata 1 tcpdata 2 at the MATLAB prompt The result would look like below Experiment Result hM hu 1 N 0 5 2 3 di Pt hy c Py td os 1 Jo o y Time second Note To run this demo what you need is that an l 8024 AO module and an 1 8017H Al mod
7. e Simulink Sources library 9 Connect all the blocks as shown in the following figure z m01 O Xl File Edit View Simulation Format Tools Help 1 cR E d BS mo ce m Normal Hee Im ICPFDAS Eiti Embedded Controller SYS_INIT Sine Wave ICPDAS DataToaFile Block DataToFile 5017H 100 T 0 00 Fixed StepDiserete ZA 8438 8838 Quick Start Manual Version 1 0 02 2004 6 Chapter 3 Build the program by RTW In this section we will demonstrate you how to convert the control model created in the previous section into an exe by RTW 1 Open the Simulation Parameters dialog box by choosing Simulation parameters from the Simulation menu 7001 File Edit View Simulation Format Tools Help C Pe 2 o tart Cab T simulation parameters CthHE Mechanical environment v Nornnal Accelerator External Sine Wave 2 On the dialog box that displays select Type as Fixed step Mode as Single Tasking and Fixed step time as 0 002 in the field Solver options nnulation Parameters 1001 al x Solver Workspace 1 0 Diagnostics dvanced Fieal Time Workshop Simulation time Start time 0 0 Stop time z Solver options Type Fized step discrete na continuous states M Fixed step ee 0 002 7 Mad SingleTasking gt Output options Refine output d Refine factor LIE Cancel Help Apply 8438 8838 Quic
8. inate function required and Single output update function options on the pane 8438 8838 Quick Start Manual Version 1 0 02 2004 8 emulation Parameters 101 al x Solver Workspace 1 0 Diagnostics Advanced Real Time workshop Category ERT code generation options 1 Build Uptions MAT ile lagging Integer code only Initialize internal data Initialize external lO data Terminate function required Single autput update Function Insert block descriptions in cade LE Cancel Help Apply 6 For MATLAB 6 5 you have to select ERT code generation options 3 from the Category field Then cancel the option Generate an example main program 5 x Salver Workspace 1 0 Diagnostics Advanced Real Time Workshop Category ERT code generation options 3 Build Up In Generate an example main progra BareBoardE ample nmnulation Parameters t001 Target operating system Generate reusable code Reusable code error diagnostic Eror d Suppress error status in real time model data structure Target floating peint math environment ANSI C UE Cancel Help Apply 7 When the above steps are done save the model and click the Build button to start the build process Note The name of the model cannot be over 4 characters This is due to the limitation of Turbo C C Compiler 8438 8838 Quick Start
9. k Start Manual Version 1 0 02 2004 7 3 Then click the Real Time Workshop tab and the panel changes On the panel that shows up select Target configuration from the Category field Then click the Browse button to open the System Target File Browser window simulation Parameters 101 nml x Solver Workspace 170 Diagnostics Advanced Real Time Workshop Categor hal Build Configuration System target file me D Template makefile on defaut tm Make command make tw 0000000000000 Generate code only S Lateflow options LK Cancel Help Apply 4 On the System Target File Browser dialog select the correct system target file from the list and then click the OK button to close the dialog box Here we choose 8xx8 tlc swstem Target File Browser M01 Jystem target file Description asapz tlc ASAM ASAPZ Data Definition Target drt tlc D SrdGW Real Time Target PPE EEE ETW Embedded Coder CEES EIE Visual C C Project Makefile only for the ETW Em qrt tlc Generic Real Time Target qrt tle Visual C C Project Makefile only for the grt grt mallaoc tlc Generic Real Time Target with dynamic memory alla grt malloc tle Visual L C Project Makefile only for the grt m I 6xxG tle IS5xxa Embedded Target 5 And select the ERT code generation options for MATLAB 6 1 or ERT code generation options 1 for MATLAB 6 5 in the Category field Then check the Term
10. le to the matlab controller users can click Auto button in the GUI screen to execute the following steps 1 Run Program IS000 Series User Interface Em Rs232 TCPAP Disconnect Connect to stop Ip 13 we a 15 Port 10000 set MET Sawnloee Program ix running Connection Is established 2 Upload when stop time is up T8000 Series User Interface Rs232 TCPAP Disconnect Connect to stop Ip 13 we a 15 Port 10000 set MET Sawnloee Upload Exit GUI Connection Is established 8438 8838 Quick Start Manual Version 1 0 02 2004 14 T6000 Series User Interface emu HS5z32 TCP IP eAuto Disconnect Connect to stop ip 192 ws o 15 Port 10000 SetNET Data is uploading Downoad Upload Exit tal I p STATUS Upload B55 3 Close GUP T6000 Series User Interface R5232 TEP ZIP Disconnect Connect to tart ip i3 168 o 15 Port 10000 SetNET Download Ueload GUI vill Close Exit GUI STATUS Connection is established 8438 8838 Quick Start Manual Version 1 0 02 2004 15
11. ule have been installed on slot 2 and 3 of the l 8838 respectively 8438 8838 Quick Start Manual Version 1 0 02 2004 12 Addition Function for New Driver Version New Function for Matlab Driver v1 1 There are two new buttons Auto and eAuto provided in the GUI screen for RS 232 and Ethernet interface separately After users complete connection and download file to the matlab controller users can click Auto or eAuto button to execute the following continuous steps automatically 1 Hun Program 2 Upload when stop time is up 3 Close GUI That will be more convenient for users to test the control algorithm during the development stage These two Auto button are showed as the following figure T6000 Series User Interface PIE asa reae Cos nenne Serial Port EDAM El Baudrate Start 1 15200 1 Parity Download none E aloe Connection is established Exit GUI STATUS Connechon is established RS 232 Interface T6000 Series User Interface RS232 TLPZIP Connect to Start ip 132 18 oa 15 Download Port 10000 aet NET Jpload Connection is established Exit GUI STATUS Connection is established Ethernet Interface 8438 8838 Quick Start Manual Version 1 0 02 2004 13 The whole process for Auto button function is described as following Ethernet Interface Example After users complete the connection and download fi
Download Pdf Manuals
Related Search
Related Contents
User Manual - Amazon Web Services Samsung SGH-B220 Manuel de l'utilisateur Toshiba 84LM9600 Flat Panel Television User Manual Instrucciones de servicio Varilla medidora de estatura electrónica グロリア総合カタログ(673KB) USER MANUAL MANUAL DE INSTRUÇÕES TC2-VGAHDMI TECHCONNECT MANUALE DI ISTRUZIONI Copyright © All rights reserved.
Failed to retrieve file