logika dan pemrograman komputer
DESCRIPTION
LOGIKA DAN PEMROGRAMAN KOMPUTER. SIMULINK. Wayan Nata Septiadi, ST [email protected]. LOGIKA & PEMROGRAMAN KOMPUTER. PENGERTIAN SIMULINK. Simulink merupakan suatu sub program dari bahasa matlab yang dapat digunakan grafikal, pemodelan simulasi dan control dinamik. MATLAB commands - PowerPoint PPT PresentationTRANSCRIPT
Copyright 1984 - 1998 by The MathWorks, Inc.
2MATLAB and HDF-EOS
PENGERTIAN SIMULINK
LOGIKA & PEMROGRAMAN KOMPUTER
Simulink merupakan suatu sub program dari bahasa matlab yang dapat digunakan grafikal, pemodelan simulasi dan control dinamik.
MATLAB commandsand scripts can beexecutedinteractively in the“Command Window”
Copyright 1984 - 1998 by The MathWorks, Inc.
3MATLAB and HDF-EOS
Simulink Library Browser
LOGIKA & PEMROGRAMAN KOMPUTER
Library browser merupakan toolbook model yang terdiri dari sink, sources, math operation dan lain-lainTerdapat 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)
Copyright 1984 - 1998 by The MathWorks, Inc.
4MATLAB and HDF-EOSLOGIKA & PEMROGRAMAN KOMPUTER
Model simulasi sederhana
Drag an dropSine Wave blockfrom Sources inthe Library
Drag an dropGain block fromMath Operationsin the Library
Drag an dropScope blockfrom Sinks in theLibrary
Connect block inputs and outputs according tothe circuit equationDouble-click a block to change parametervaluesTo better document the model, double-click onthe block name or on the connection line tochange block and signal names as desired
Copyright 1984 - 1998 by The MathWorks, Inc.
5MATLAB and HDF-EOSLOGIKA & PEMROGRAMAN KOMPUTER
Click here to start simulation
Total simulation time (10 seconds inClick here to start simulation this example) can be changed here
Double-click on the Scopeblock to display the outputwaveform (current iR)
Explore various menu options, blockproperties, etc. For example:• Add another axis to the Scopeand display both iR and vR• Repeat simulations for differentvalues of the sinewave amplitudeor frequency, or different R
Scopeparameters
Autoscale
Copyright 1984 - 1998 by The MathWorks, Inc.
6MATLAB and HDF-EOSLOGIKA & PEMROGRAMAN KOMPUTER
Any constant or variable definedin the Matlab workspace isavailable in the block diagram.
The “simin” and “simout” blocksallow you to pass signals in fromthe workspace, and out to theworkspace. Change the saveformat to “Array” for easiest use(double click on the ToWorkspace block for options).
The “clock” source allows you togenerate a time signal if youwant to send that back to theworkspace.
Communicating with the Workspace
Copyright 1984 - 1998 by The MathWorks, Inc.
7MATLAB and HDF-EOSLOGIKA & PEMROGRAMAN KOMPUTER
Under “Discontinuous” youwill find coulomb friction,dead zone, saturation, andrelay.Under “Continuous” thereis a delay block.Under “Simulink Extras”there is a PID controller,transfer function with nonzeroinitial conditions,some useful sinks (suchas power spectraldensity), and radians-todegreesand Fahrenheitto-Celsius converters.
Other Useful Blocks