logika dan pemrograman komputer

7
LOGIKA DAN PEMROGRAMAN KOMPUTER Wayan Nata Septiadi, ST [email protected] SIMULINK

Upload: samira

Post on 05-Jan-2016

72 views

Category:

Documents


6 download

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 Presentation

TRANSCRIPT

Page 1: LOGIKA  DAN PEMROGRAMAN KOMPUTER

LOGIKA DAN PEMROGRAMAN KOMPUTER

Wayan Nata Septiadi, [email protected]

SIMULINK

Page 2: LOGIKA  DAN PEMROGRAMAN KOMPUTER

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”

Page 3: LOGIKA  DAN PEMROGRAMAN KOMPUTER

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)

Page 4: LOGIKA  DAN PEMROGRAMAN KOMPUTER

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

Page 5: LOGIKA  DAN PEMROGRAMAN KOMPUTER

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

Page 6: LOGIKA  DAN PEMROGRAMAN KOMPUTER

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

Page 7: LOGIKA  DAN PEMROGRAMAN KOMPUTER

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