0% found this document useful (0 votes)
154 views13 pages

Usage Simulation Man

The document describes the software and hardware requirements to run programs accompanying a textbook on intelligent control of induction motor drives. It provides instructions to run simulations and examples in MATLAB and CCS software for different chapters covering topics like modeling, control strategies, optimization techniques.

Uploaded by

Anonymous AFFiZn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
154 views13 pages

Usage Simulation Man

The document describes the software and hardware requirements to run programs accompanying a textbook on intelligent control of induction motor drives. It provides instructions to run simulations and examples in MATLAB and CCS software for different chapters covering topics like modeling, control strategies, optimization techniques.

Uploaded by

Anonymous AFFiZn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 13

Supplementary materials to the text book “Applied Intelligent Control of Induction Motor

Drives” by Tze-Fun Chan and Keli Shi

Hardware requirements to run the programs

1. PC, Intel Core 2 Duo processor, at least 1024 MB of RAM (2048 MB is


recommended), at least 2 GB of available space on the hard disk, and CD-ROM or DVD-
ROM drive.

2. eZdspF28335 development board (delivered by Spectrum Digital, Inc.)


or TMS320F28335 experimenter kit (delivered by Texas Instruments Inc.)

2. eZdspF28335 development board (delivered by Spectrum Digital, Inc.)


or TMS320F28335 experimenter kit (delivered by Texas Instruments Inc.)

Software requirements to run the programs

1. Operation systems: Windows XP Service Pack 3

2. MATLAB® 2008b with following software packages


Simulink
Fuzzy Logic Toolbox
Neural Network Toolbox
Signal Process Processing Blockset
Embedded IDE Link CC

3. CCStudio_v3.3 Texas Instruments Inc.


with Bios_5_33_06 Texas Instruments Inc.

Files with different extensions are identified as follows:

In MATLAB®, the file extensions have following definitions.


1. file.m: MATLAB® file
2. file.mdl: Simulink file
3. file.mat: Double-precision, binary, MATLAB® format files

In CCStudio_v3.3, the file extensions have following definitions.


1. file.pjt: Project file
2. file.c: C Source program
3. file.tcf: DSP/BIOS file
4. file.h: Header support file
5. file.asm: Assembly source program created by the user or by the C compiler
6. file.cmd: Linker command file
7. file.obj: Object file created by the assembler
8. file.out: Executable file created by the linker to be loaded and run on the

Applied Intelligent Control of Induction Motor Drives Tze-Fun Chan and Keli Shi
© 2011 John Wiley & Sons (Asia) Pte Ltd
TMS320F28335 processor
1. Programs in Chapter 3

All the programs are in the “Chapter3” folder.

Simulation of current-input model of an induction Motor


Step 1. Open the Simulink model “Current_input_Model.mdl” in the folder
“Chapter3_3”.
Step 2. Start the simulation.

Simulation of voltage-input model of an induction Motor without internal resistance


of power supply
Step 1. Open the Simulink model “Voltage_input_model0.mdl” in the folder
“Chapter3_4”.
Step 2. Start the simulation.

Simulation of voltage-input model of an induction motor with internal resistance of


power supply
Step 1. Open the Simulink model “Voltage_input_model.mdl” in the folder
“Chapter3_4”.
Step 2. Start the simulation.

Simulation of discrete-state model of an induction motor without internal resistance


of power supply
Step 1. Set the current directory of MATLAB® to “Chapter3_5”.
Step 2. Open the Simulink model “Discrete_model0.mdl” which will call the S-function
“Induction_motor.m”. The two files are in the current directory.
Step 3. Start the simulation.

Simulation of discrete-state model of an induction motor with internal resistance of


power supply
Step 1. Set the current directory of MATLAB® to “Chapter3_5”.
Step 2. Open the Simulink model “Discrete_model.mdl” which will call the S-function
“Induction_motor.m”. The two files are in the current directory.
Step 3. Start the simulation.

Example 1. Programming by MATLAB® commands


Step 1. Set the current directory of MATLAB® to “Chapter3_10”.
Step 2. Enter “Example1_Park” into the MATLAB® command line.

Example 2. Programming by Simulink blocks


Step 1. Open the Simulink model “Example2_Park_transform.mdl” in the folder
“Chapter3_10”.
Step 2. Start the simulation.

Applied Intelligent Control of Induction Motor Drives Tze-Fun Chan and Keli Shi
© 2011 John Wiley & Sons (Asia) Pte Ltd
Example 3. Programming by Simulink blocks with self-defined expression
Step 1. Open Simulink model “Example3_Park_transform.mdl” in the folder
“Chapter3_10”.
Step 2. Start the simulation.

Example 4. Programming by Simulink blocks which calls a MATLAB® function


Step 1. Set the current directory of MATLAB® to “Chapter3_10”.
Step 2. Open the Simulink model “Example4_Park_transform_Simulink.mdl” which will
call the S-function “Example4_Park_Transform.m”. The two files are in the current
directory.
Step 3. Start the simulation.

Example 5. Programming by MATLAB® function which calls a Simulink model


Step 1. Set the current directory of MATLAB® to “Chapter3_10”.
Step 2. Enter “Example5_Park” into the MATLAB® command line. The MATLAB®
function “Example5_Park.m” will call Simulink model
“Example5_Park_transform.mdl”. The two files are in the current directory.

Example 6. Programming by calling an “abc_to_qd0” block


Step 1. Open the Simulink model “Example6_Park_transform.mdl” in the folder
“Chapter3_10”.
Step 2. Start the simulation.

2. Programs in Chapter 4

All the programs are in the “Chapter4” folder.

Fuzzy logic simulation


Step 1. Set the current directory of MATLAB® to “Chapter4_2”.
Step 2. Open the Simulink model “PIcontroller.mdl”. Start the simulation for the PI
control system.
Step 3. Open the Simulink model “Fuzzycontroller.mdl” which will call the Fuzzy
Inference System file “fis2.fis”. The two files are in the current directory.
Step 4. Start the simulation for the Fuzzy PI control system.
Step 5. Step 3. Open the Simulink model “Fuzzy_PI_controller.mdl” which will call the
Fuzzy Inference System file “fis2.fis”. The two files are in the current directory.
Step 4. Start the simulation for the Fuzzy PI controller and PI controller in the same
window to compare the performance of the two controllers.

Neural-network simulation
Step 1. Set the current directory of MATLAB® to “Chapter4_3”.
Step 2. Open the Simulink model “SinCos_sample .mdl”. Start the simulation to create
data samples for training Park’s transformation matrix.
Step 3. Enter “ANN_train” into the MATLAB® command line to train the ANN model. A
trained ANN model is obtained.
Applied Intelligent Control of Induction Motor Drives Tze-Fun Chan and Keli Shi
© 2011 John Wiley & Sons (Asia) Pte Ltd
Step 4. Open the Simulink model “ABC_DQ_ANN.mdl”. Copy the trained ANN model
into “ABC_DQ_ANN.mdl” to replace the old ANN model.
Step 5. Start the simulation for Park’s transformation using ANN.

Kalman filter simulation


Step 1. Open the Simulink model “Kalman_measure.mdl” in the folder “Chapter4_4”.
Step 2. Start the simulation.

Genetic algorithm simulation


Step 1. Set the current directory of MATLAB® to “Chapter4_5”.
Step 3. Enter “Start_GA_PID” to optimize the parameters of PID by GA.
Step 4. In the current directory, open and start the Simulink model “PID_controller.mdl”
to simulate the optimized PID controller by GA.
Step 5. Enter “Start_GA_PID_2” to optimize the parameters of PID by improved GA.
Step 6. Start the Simulink model “PID_controller.mdl” again to simulate the optimized
PID controller by improved GA.

3. Programs in Chapter 5

All the programs are in the “Chapter5” folder.

Step 1. Open the Simulink model “dsc.mdl” in the folder “Chapter5”. Start the simulation
for a DSC controller.
Step 2. Open the Simulink model “dsc_noise.mdl” in the folder “Chapter5”. Start the
simulation of the DSC controller with drift noise of measured stator current.
Step 3. Open the Simulink model “acc_75.mdl” in the folder “Chapter5”. Start the
simulation for the expert-system controller for a 7.5 kW induction motor.
Step 4. Open the Simulink model “acc_075.mdl” in the folder “Chapter5”. Start the
simulation for the expert-system controller for a 0.75 kW induction motor.

4. Programs in Chapter 6

All the programs are in the “Chapter6” folder.

Fuzzy/PI control system with current-input model of an induction motor


Step 1. Set the current directory of MATLAB® to “Chapter6_6”.
Step 2. Open the Simulink model “twofuzzy75.mdl” and start the simulation.

Fuzzy/PI control system with voltage-input model of an induction motor


Step 1. Set the current directory of MATLAB® to “Chapter6_7”.
Step 2. Open the Simulink model “twofuzzy0147.mdl” and start the simulation.

Voltage-input model of an induction motor


Step 1. Set the current directory of MATLAB® to “Chapter6_8”.
Applied Intelligent Control of Induction Motor Drives Tze-Fun Chan and Keli Shi
© 2011 John Wiley & Sons (Asia) Pte Ltd
Step 2. Open the Simulink model “Exp_6_1.mdl” in the folder “Example1” in the
“Chapter6_8” folder and start the simulation.

Fuzzy/PI control system with voltage-input model of induction motor


Step 1. Set the current directory of MATLAB® to “Chapter6_8”.
Step 2. Open the Simulink model “Exp_6_2.mdl” in the folder “Example2” in the
“Chapter6_8” folder and start the simulation.

5. Programs in Chapter 7

All the programs are in the “Chapter7” folder.

Neural network based direct self control system


Open the Simulink model “neural_dsc.mdl” in the folder “Chapter7_3” and start the
simulation.

Direct self control system


Open the Simulink model “Exp1_dsc.mdl” in the folder “Chapter7_4” and start the
simulation.

Programming example 1
Open the Simulink model “Exp1_dsc.mdl” from the sub-folder “Example1” in the folder
“Chapter7_5” and start the simulation.

Programming example 2

Step 1. Open the Simulink model “Exp2_ANN.mdl” from the sub-folder “Example2” in
the folder “Chapter7_5”.
Step 2. Start the simulation for the direct self control system with neural network based
optimum switching table.

6. Programs in Chapter 8

All the programs are in the “Chapter8” folder.

Open the Simulink model “im_chapter8_4.mdl” in the folder “Chapter8_4” and start the
simulation for an induction motor drive.

Open the Simulink model “SVPWM.mdl” in the folder “Chapter8_4” and start the
Simulink model to simulate a space vector PWM inverter.

Open the Simulink model “im_ch8_4_block_rotor.mdl” in the folder “Chapter8_4” and


start the simulation for an induction motor drive under blocked-rotor condition.

Applied Intelligent Control of Induction Motor Drives Tze-Fun Chan and Keli Shi
© 2011 John Wiley & Sons (Asia) Pte Ltd
ANN training programs in section 8.4
Step 1. Set the current directory of MATLAB® to “Chapter8_4”.
Step 2. Open the Simulink model “Sample_Data.mdl” in the folder “Chapter8_4” and
start the simulation to create data sample data for training ANN1, ANN2, ANN4.
Step 3. Run the program “ANN_train.m” in the current directory to train ANN1, ANN2,
ANN4.
Step 4. Open the Simulink model “Sample_Data_block_rotor.mdl” in the folder
“Chapter8_4” and start the simulation to create data samples for training ANN3.
Step 5. Run the program “ANN_train_block_rotor.m” in the current directory to train
ANN3.

Neural network and conventional models of an induction motor driven by an SVM


inverter
Open the Simulink model “ANN_IM_SVM.mdl” in the folder “Chapter8_5” and start the
simulation to simulate and compare the neural network and conventional models of
induction motor driven by an SVM inverter.

Load estimation
Step 1. Set the current directory of MATLAB® to “Load” in folder “Chapter8_7”.
Step 2. Open the Simulink model “Load_estimation.mdl” in the current directory.
Step 3. Start the simulation to estimate the load.
Step 4. Run the program “load_error.m” in the current directory to calculate the error of
the estimated load.

Load estimation with noise


Step 1. Open the Simulink model “Load_estimation_with_noise.mdl” in the current
directory.
Step 2. Start the simulation to estimate the load with measured noise.
Step 3. Run the program “load_error.m” in the current directory to calculate the error of
the estimated load with measured noise.

Flux estimation
Step 1. Set the current directory of MATLAB® to “Flux” in folder “Chapter8_7”.
Step 2. Open the Simulink model “Flux_est.mdl” in the current directory.
Step 3. Start the simulation to estimate the flux.
Step 4. Run the program “Flux_error.m” in the current directory to calculate the error of
the estimated flux.

Speed estimation
Step 1. Set the current directory of MATLAB® to “Speed” in folder “Chapter8_7”.
Step 2. Open the Simulink model “Speed_est.mdl” in the current directory.
Step 3. Start the Simulink model to estimate rotor speed.
Step 4. Run the program “Speed_error.m” in the current directory to calculate the error of
the estimated rotor speed.

Applied Intelligent Control of Induction Motor Drives Tze-Fun Chan and Keli Shi
© 2011 John Wiley & Sons (Asia) Pte Ltd
Programming example 1. Field-oriented control (FOC) system
Step 1. Set the current directory of MATLAB® to “Example1” in folder “Chapter8_8”.
Step 2. Open the Simulink model “Exp1_FOC.mdl” in the current directory. Start the
simulation for the field-oriented control (FOC) system.

Programming example 2. Sensorless control of an induction motor


Step 1. Set the current directory of MATLAB® to “Example2” in folder “Chapter8_8”.
Step 2. Open the Simulink model “Exp2_sensorless.mdl” in the current directory. Start
the simulation for sensorless control of an induction motor.
Step 3. Run the program “Speed_error.m” in the current directory to calculate the error of
the estimated rotor speed.

7. Programs in Chapter 9

All the programs are in the “Chapter9” folder.

Speed estimation of FOC drive using EKF


Step 1. Set the current directory of MATLAB® to the folder “Chapter9_7”.
Step 2. Open the Simulink model “Ch9_ga_foc.mdl” in the current directory. Start the
simulation for speed estimation of an FOC drive using EKF.

Voltage-frequency controlled (VFC) induction motor drive


Step 1. Set the current directory of MATLAB® to “Example1” in folder “Chapter9_8”.
Step 2. Enter “Give_VF_table” into the MATLAB® command line to create a table of
Volts/Hz characteristics.
Step 3. Open the Simulink model “vf.mdl” in the current directory. Start the simulation
for a voltage-frequency controlled (VFC) induction motor drive.

Programming GA-optimized EKF for speed estimation of an induction motor


Step 1. Set the current directory of MATLAB® to “Example2” in folder “Chapter9_8”.
Step 2. Enter “Start_GA” into the MATLAB® command line to optimize an EKF
(extended Kalman filter) by GA.
Step 3. After the program “Start_GA.m” stop, open the Simulink model “kal_train.mdl”
in the current directory. Start the simulation for the optimized EKF for speed estimation
of induction motor.

EKF based sensorless VFC of induction motor


Step 1. Set the current directory of MATLAB® to “Example3” in folder “Chapter9_8”.
Step 2. Enter “Give_VF_table_GA” into the MATLAB® command line to create a table
of Volts/Hz characteristics.
Step 3. Open the Simulink model “vf_GA.mdl” in the current directory. Start the
simulation for an EKF based sensorless VFC of an induction motor.

EKF based sensorless field-oriented control (FOC) of induction motor


Step 1. Set the current directory of MATLAB® to “Example4” in folder “Chapter9_8”.
Applied Intelligent Control of Induction Motor Drives Tze-Fun Chan and Keli Shi
© 2011 John Wiley & Sons (Asia) Pte Ltd
Step 2. Open the Simulink model “EXP4.mdl” in the current directory. Start the
simulation for an EKF based sensorless field-oriented control (FOC) of an induction
motor.

8. Programs in Chapter 10

All the programs are in the “Chapter10” folder.

A. Section 10.2

Example 1 Evaluation of a square waveform


Step 1. Set the current directory of MATLAB® to “Chapter10_2”.
Step 2. Open the Simulink model “Square_wave_EXP1.mdl” in the current directory and
start the simulation for a square waveform.
Step 3. Enter “Evaluation_10_2_1(yout)” into the MATLAB® command line. Compare
the results with Fig.10-5 and Table 10-1 in the book.

Example 2 Evaluation of a four-pulse waveform


Step 1. Set the current directory of MATLAB® to “Chapter10_2”.
Step 2. Enter “Exp2_Four_Pulse” into the MATLAB® command line to simulate a four-
pulse wave. Compare the results with Fig.10-6 and Table 10-1 in the book.
Step 3. Open the Simulink model “Normal_PWM.mdl” in the current directory and start
the simulation to observe the PWM waveforms.

Example 3 Evaluation of a four-pulse waveform


Step 1. Set the current directory of MATLAB® to “Chapter10_2”.
Step 2. Open the Simulink model “Four_pulse_EXP3.mdl” in the current directory and
start the simulation for a four-pulse waveform.
Step 3. Enter “Evaluation_10_2_1(yout)” into the MATLAB® command line. Compare
the results with Fig.10-7 and Table 10-1 in the book.

Example 4 A triangular-carrier PWM output with 5 kHz carrier frequency


Step 1. Set the current directory of MATLAB® to “Chapter10_2”.
Step 2. Enter “PWM_Vab” into the MATLAB® command line to simulate a triangular-
carrier PWM and to evaluate the PWM waveform. Compare the results with Fig.10-8 and
Table 10-1 in the book.
Step 3. Open the Simulink model “Normal_PWM.mdl” in the current directory and start
the simulation to observe the PWM waveforms.

B. Section 10.3

Random carrier-frequency PWM


Step 1. Set the current directory of MATLAB® to “Chapter10_3”.

Applied Intelligent Control of Induction Motor Drives Tze-Fun Chan and Keli Shi
© 2011 John Wiley & Sons (Asia) Pte Ltd
Step 2. Enter “Random_Frequency” into the MATLAB® command line to simulate
random-carrier-frequency PWM and to evaluate the PWM waveform. Compare the
results with Fig.10-10 in the book.

Random pulse-position PWM


Step 1. Set the current directory of MATLAB® to “Chapter10_3”.
Step 2. Enter “Random_P” into the MATLAB® command line to simulate random pulse-
position PWM and to evaluate the PWM waveform. Compare the results with Fig.10-12
in the book.

Random pulse-width PWM


Step 1. Set the current directory of MATLAB® to “Chapter10_3”.
Step 2. Enter “Random_W” into the MATLAB® command line to simulate random pulse-
width PWM and to evaluate the PWM waveform. Compare the results with Fig.10-14 in
the book.

Hybrid random pulse-position and pulse-width PWM


Step 1. Set the current directory of MATLAB® to “Chapter10_3”.
Step 2. Enter “Random_PW” into the MATLAB® command line to simulate hybrid
random pulse-position and pulse-width PWM and to evaluate the PWM waveform.
Compare the results with Fig.10-15 in the book.

C. Section 10.4

GA based optimized random-carrier-frequency PWM


Step 1. Set the current directory of MATLAB® to the folder “GA_Frequency” in the
folder “Chapter10_4”.
Step 2. Enter “Start_GA” to start the GA optimization program for random-carrier-
frequency PWM.
Step 3. Compare the results with Fig.10-17, Fig.10-18, and Table 10-3 in the book.

GA based optimized random-pulse-position PWM


Step 1. Set the current directory of MATLAB® to the sub-folder “GA_Position” in the
folder “Chapter10_4”.
Step 2. Enter “Start_P” to start the GA optimization program for random-pulse-position
PWM.
Step 3. Compare the results with Fig.10-19, Fig.10-20, and Table 10-3 in the book.

GA based optimized random-pulse-width PWM


Step 1. Set the current directory of MATLAB® to the sub-folder “GA_Width” in the
folder “Chapter10_4”.
Step 2. Enter “Start_W” to start the GA optimization program for random-pulse-width
PWM.
Step 3. Compare the results with Fig.10-21, Fig.10.22, and Table 10.3 in the book.

Applied Intelligent Control of Induction Motor Drives Tze-Fun Chan and Keli Shi
© 2011 John Wiley & Sons (Asia) Pte Ltd
GA based Optimized hybrid random pulse-position and pulse-width PWM
Step 1. Set the current directory of MATLAB® to the sub-folder
“GA_Position_and_Width” in the folder “Chapter10_4”.
Step 2. Enter “Start_PW” to start GA optimization program for hybrid random pulse-
position and pulse-width PWM.
Step 3. Compare the results with Fig.10-23, Fig.10-24, and Table 10-3 in the book.

D. Section 10.5

A single-phase sinusoidal PWM


Step 1. Set the current directory of MATLAB® to the sub-folder “Example1” in the folder
“Chapter10_5”.
Step 2. Enter “Run_Exp1” to simulate the single-phase sinusoidal PWM.

Evaluation of a four-pulse waveform


Step 1. Set the current directory of MATLAB® to the sub-folder “Example2” in the folder
“Chapter10_5”.
Step 2. Enter “Run_Exp2” to evaluate the four-pulse waveform.
.
Random carrier-frequency PWM
Step 1. Set the current directory of MATLAB® to the sub-folder “Example3” in the folder
“Chapter10_5”.
Step 2. Enter “Run_Exp3” to simulate the random carrier-frequency PWM.

9. Programs in Chapter 11

All the programs are in the “Chapter11” folder.

3-phase sinusoidal PWM programming

The programs are in the “Example1_PWM” folder in the “Chapter11” folder.

Step 1. Connect the TMS320F28335 experiment board to the PC by a USB interface and
start Code Composer Studio (CCS) software.

Step 2. Connect the Code Composer Studio (CCS) to the TMS320F28335 processor by
selecting item “Connect” from the CCS “Debug” menu.

Step 3. Reset CPU of the processor and load the executable code
“F28335_example_PWM.out” into the processor by selecting the item “Load Program”
from the CCS “File” menu. The file “F28335_example_PWM.out” is in the “Debug”
folder.

Step 4. Connect pins of the processor, GPIO0 (PWM1A), GPIO2 (PWM2A), and GPIO4
(PWM3A) to the oscilloscope channel 1, channel 2, and channel 3. Click key “F5” to run
Applied Intelligent Control of Induction Motor Drives Tze-Fun Chan and Keli Shi
© 2011 John Wiley & Sons (Asia) Pte Ltd
the executable code in the processor and the PWM waveforms can be observed on the
oscilloscope.

Step 5. Select “Open” in the “Project” menu of CCS window to open the project file
“F28335_example_PWM.pjt” (which is located in the folder “CD/Chapter11/
Example1_PWM/projects”) to view all the source codes.

RTDX programming

The programs are in the “Example2_RTDX” sub-folder in the “Chapter11” folder.

Step 1. Connect the TMS320F28335 experiment board to the PC by a USB interface and
start Code Composer Studio (CCS) software.

Step 2. Connect the Code Composer Studio (CCS) to the TMS320F28335 processor by
selecting item “Connect” from the CCS “Debug” menu.

Step 3. Reset CPU of the processor and load the executable code “RTDX.out” into the
processor by selecting the item “Load Program” from the CCS “File” menu. The file
“RTDX.out” is in the “Debug” folder.

Step 4. Enable RTDX in CCS by opening the “RTDX Control” window from “RTDX”
folder in the “Tools” menu on the CCS, then selecting the “RTDX Enable” box from the
opened “RTDX Control” window.

Step 5. Start MATLAB® and set the current directory of MATLAB® to “MATLAB” in the
folder “Example2_RTDX”.

Step 6. Run the program “Example_RTDX.m” on MATLAB® platform.

Step 7. Select “Open” in the “Project” menu of CCS window to open the project file
“RTDX.pjt” (which is located in the folder “CD/ Chapter11/ Example2_RTDX”) to view
all source codes.

ADC programming

The programs are in the “Example3_ADC” sub-folder in the “Chapter11” folder.

Step 1. Connect the positive electrode of a battery to the pin “ADCINA0” on the
TMS320F28335 processor and the negative electrode to the ground of the processor.

Step 2. Connect the TMS320F28335 experiment board to PC by a USB interface and


start Code Composer Studio (CCS).

Applied Intelligent Control of Induction Motor Drives Tze-Fun Chan and Keli Shi
© 2011 John Wiley & Sons (Asia) Pte Ltd
Step 3. Connect the Code Composer Studio (CCS) to the TMS320F28335 processor by
selecting item “Connect” from the CCS “Debug” menu.

Step 4. Reset CPU of the processor and load the executable code “F28335_ADC.out”
into the processor by selecting the item “Load Program” from the CCS “File” menu. The
file “F28335_ADC.out” is in the “Debug” folder.

Step 5. Enable RTDX in CCS by opening the “RTDX Control” window from “RTDX”
folder in the “Tools” menu on the CCS, and then selecting the “RTDX Enable” box from
the opened “RTDX Control” window.

Step 6. Start MATLAB® and set the current directory of MATLAB® to “MATLAB” in the
folder “Example3_ADC”.

Step 7. Perform the program “Example_ADC.m” on MATLAB® platform.

Step 8. Select “Open” in the “Project” menu of CCS window to open the project file
“F28335_example_ADC.pjt” (which is located in the folder “CD/Chapter11/
Example3_ADC/ projects” to view all the source codes.

CAP programming

The programs are in the “Example4_CAP” folder in the “Chapter11” folder.

Step 1. Connect GPIO0 pin of the processor to GPIO5 pin by a conducting wire and
connect GPIO0 pin to the oscilloscope channel 1.

Step 2. Connect the TMS320F28335 experiment board to the PC by a USB interface and
start Code Composer Studio (CCS).

Step 3. Connect the Code Composer Studio (CCS) to the TMS320F28335 processor by
selecting item “Connect” from the CCS “Debug” menu.

Step 4. Reset CPU of the processor and load the executable code
“F28335_example_CAP.out” into the processor by selecting the item “Load Program”
from the CCS “File” menu. The file “F28335_example_CAP.out” is in the “Debug”
folder.

Step 5. Enable RTDX in CCS by opening the “RTDX Control” window from the
“RTDX” folder in the “Tools” menu on the CCS, and then selecting the “RTDX Enable”
box from the opened “RTDX Control” window.

Step 6. Start MATLAB® and set the current directory of MATLAB® to “MATLAB” in the
folder “Example4_CAP”.

Applied Intelligent Control of Induction Motor Drives Tze-Fun Chan and Keli Shi
© 2011 John Wiley & Sons (Asia) Pte Ltd
Step 7. Perform the program “Example_CAP.m” on MATLAB® platform.

Step 8. Select “Open” in the “Project” menu of CCS window to open the project file
“F28335_example_CAP.pjt” (which is located in the folder “CD/Chapter11/
Example4_CAP/ projects”) to view all the source codes.

Applied Intelligent Control of Induction Motor Drives Tze-Fun Chan and Keli Shi
© 2011 John Wiley & Sons (Asia) Pte Ltd

You might also like