Page 12 - Mechatronics with Experiments
P. 12
x CONTENTS
Theory 776 Objectives 799
Application Software Components 799
Description 777 Theory 799
Procedure 777 Application Software
11.8 Experiment 8: Force and Description 802
Strain Measurement Using a Procedure 804
Strain Gauge and PIC-ADC
®
Interface 780 APPENDIX MATLAB ,
®
Objectives 780 SIMULINK ,STATEFLOW,AND
Components 781 AUTO-CODE GENERATION 805
Theory 781
®
Application Software A.1 MATLAB Overview 805
Description 784 A.1.1 Data in MATLAB ®
Procedure 785 Environment 808
11.9 Experiment 9: Solenoid A.1.2 Program Flow Control
Control Using a Transistor and Statements in
PIC Microcontroller 787 MATLAB ® 813
Objectives 787 A.1.3 Functions in
®
Components 787 MATLAB : M-script
Theory 787 files and M-function
Hardware 787 files 815
Application Software A.1.4 Input and Output in
Description 788 MATLAB ® 822
®
Procedure 788 A.1.5 MATLAB Toolboxes 831
11.10 Experiment 10: Stepper Motor A.1.6 Controller Design
Motion Control Using a PIC Functions: Transform
Microcontroller 790 Domain and
Objective 790 State-Space Methods 832
Components 790 A.2 Simulink ® 836
®
Theory 790 A.2.1 Simulink Block
Application Software Examples 843
Description 791 A.2.2 Simulink ®
Procedure 793 S-Functions in C
11.11 Experiment 11: DC Motor Language 852
Speed Control Using PWM 794 A.3 Stateflow 856
Objectives 794 A.3.1 Accessing Data and
Components 794 Functions from a
Theory 794 Stateflow Chart 865
Application Software A.4 Auto Code Generation 876
Description 795
Procedure 796 REFERENCES 879
11.12 Experiment 12: Closed Loop
DC Motor Position Control 799 INDEX 883