Download presentation
Presentation is loading. Please wait.
Published byIda Chandra Modified over 6 years ago
1
SIMULINK LOGIKA DAN PEMROGRAMAN KOMPUTER Wayan Nata Septiadi, ST
This presentation shows how The MathWorks products provide an integrated approach for the design of complex systems. Beginning with the concept, the tools provide the ability to develop the system, verify that it satisfies the specifications, allows the designer to optimize the design, and finally, automatically creates the embedded code. Using examples from aircraft and spacecraft design, the unique features of The MathWorks products that allow this process are highlighted. In particular, the open nature of the products and their integration are exploited.
2
LOGIKA & PEMROGRAMAN KOMPUTER
PENGERTIAN SIMULINK Simulink merupakan suatu sub program dari bahasa matlab yang dapat digunakan grafikal, pemodelan simulasi dan control dinamik. MATLAB commands and scripts can be executed interactively in the “Command Window”
3
Simulink Library Browser
LOGIKA & PEMROGRAMAN KOMPUTER Simulink Library Browser Library browser merupakan toolbook model yang terdiri dari sink, sources, math operation dan lain-lain Terdapat kurang lebih 2060 model simulink standar dalam library browser. Model tidak dapat dioperasikan pada comand windows Matlab. Model simulink dapat dioperasikan pada: Click File - New – Model (or Ctrl-N)
4
Model simulasi sederhana
LOGIKA & PEMROGRAMAN KOMPUTER Model simulasi sederhana The talk consists of an introductory demonstration that uses the Lunar Module autopilot design to illustrate MATLAB, Simulink and Stateflow integrated together to provide a complete design. This is followed by a brief description of The MAthWorks; who we are and how we got started. The presentation then walks through each of the major products and these are illustrated using examples that have been selected to illustrate the main strengths of each product. The last part of the discusses “Simulation based Requirements”. The current state of code generation for embedded systems is described, and the way in which this can evolve using integrated tools is discussed. Connect block inputs and outputs according to the circuit equation Double-click a block to change parameter values To better document the model, double-click on the block name or on the connection line to change block and signal names as desired Drag an drop Gain block from Math Operations in the Library Drag an drop Sine Wave block from Sources in the Library Drag an drop Scope block from Sinks in the Library
5
Total simulation time (10 seconds in
LOGIKA & PEMROGRAMAN KOMPUTER Total simulation time (10 seconds in Click here to start simulation this example) can be changed here Click here to start simulation Autoscale Double-click on the Scope block to display the output waveform (current iR) * WE’RE APPLICABLE TO A WIDE RANGE OF PROBLEMS - if you believe -as we do - that the future of technical computing involvesA MULTIDISCIPLINARY APPROACH, YOU’LL SEE THAT IN DICK’S DEMOS tHIS IS WHY ASTRONAUTICS IS TALKING TO US ABOUT INCREASING THEIR USAGE FROM 150 TO 1,500 COPIES. THEIR MANAGER OF IS FOR THEIR ENGINEERING AND PRODUCTION DEPARTMENTS SAYS THAT HE SEES US AS DESKTOP PRODUCT FOR ALL THEIR ENGINEERS. * BECAUSE OF THIS BREADTH OF APP & OPEN SYS PHILOSOPHY… THE EPI COMMITTEE HAS ASKED US TO LOOK INTO INTERFACING TO OTHER EPI CHOSEN TOOLS LIKE RTM & RDD. OUR INITIAL PASS TELLS US THAT ALL THE HOOKS ARE THERE, SO IT’S VERY LIKELY WE’LL BE DOING THAT OFFER CATALOG * WE HAVE EXCELLENT, INDUSTRY LEADING SUPPORT AND SERVICES THAT I’LL GO OVER BRIEFLY IN A MOMENT * I’M YOUR NAT ACCT MNGR - CPP & EPI - TRAINING FILMS Scope parameters Explore various menu options, block properties, etc. For example: • Add another axis to the Scope and display both iR and vR • Repeat simulations for different values of the sinewave amplitude or frequency, or different R 12
6
Any constant or variable defined in the Matlab workspace is
LOGIKA & PEMROGRAMAN KOMPUTER Communicating with the Workspace Any constant or variable defined in the Matlab workspace is available in the block diagram. The “simin” and “simout” blocks allow you to pass signals in from the workspace, and out to the workspace. Change the save format to “Array” for easiest use (double click on the To Workspace block for options). The “clock” source allows you to generate a time signal if you want to send that back to the workspace.
7
Other Useful Blocks LOGIKA & PEMROGRAMAN KOMPUTER
Under “Discontinuous” you will find coulomb friction, dead zone, saturation, and relay. Under “Continuous” there is a delay block. Under “Simulink Extras” there is a PID controller, transfer function with nonzero initial conditions, some useful sinks (such as power spectral density), and radians-todegrees and Fahrenheitto- Celsius converters. This is a matrix of the products that The MathWorks currently provides.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.