Using matlab/simulink version 4.1 for generating the c code
I will be grateful for your help.
I am trying to control the dc motor speed using fuzzy speed
controller, the code is generated using Matlab/simulink ( V. 4.1),
based on TMS320C30. The whole system has been built by some one, who
has left the university, and I do not know how to contact him. This
system has been working for may be more than 10 years, number of
people has used it in the past.
I have been using Matlab\simulink for quite long time, but I am not
very good at using the DSP stuff. The problems I am facing are:
1- If I put a saturation block at the controller output to limit its
output, and I generate the c code, I see the saturation block included
in the c code, But when the simulation, is finish, I check the
controller output, I realize that It is not limited (as though the
saturation block is not there).
2- If I add a new output port ( in the simulink file) and i connect it
to any block output, the output port is automatically given a new
number, and I also, see that this output port is included in the c
code. But when I Check that output port result to display it, It gives
me (matrix dimension exceeded).
3- How can i increase the size of the data, received from the DSP.
It will also be helpful if anybody can provide me with the names of
the execution files required (for DSP) to ensure that I have not got
any missing files, or direct me to where I can find the manual to
check whether I have the right one.
Thanks
yousif
|