dc motor speed control using fuzzy logic hard interfacing
Show older comments
hi sir,
i am final year student , doing project in fuzzy logic control i am not able to get the fuzzy output from the matlab simulink how can i get it easily;is there any one to get the signal from simulink platform to parrallel port (db 19 pin) or any c or c++ code is there for fuzzy logic control so that i can tye the program in command window get the signal easil i need serial port communication from my motor sensor to matlab command window and then fuzzy logic control then parralel communication to output port
pls help me sir
can visual basic or c ++ can we use in the matlab
it will be helpful for me
m file code
Name='motor1234'
Type='mamdani'
Version=2.0
NumInputs=2
NumOutputs=1
NumRules=49
AndMethod='min'
OrMethod='max'
ImpMethod='min'
AggMethod='max'
DefuzzMethod='centroid'
[Input1]
Name='rpm'
Range=[-2500 2500]
NumMFs=7
MF1='NB':'trimf',[-3333 -2500 -1666]
MF2='NM':'trimf',[-2500 -1666 -833.5]
MF3='NS':'trimf',[-1666 -833.5 0]
MF4='ZE':'trimf',[-833.5 0 833.5]
MF5='PS':'trimf',[0 833.5 1666]
MF6='PM':'trimf',[833.5 1666 2500]
MF7='PB':'trimf',[1666 2500 3335]
[Input2]
Name='cerpm'
Range=[-2500 2500]
NumMFs=7
MF1='NB':'trimf',[-3333 -2500 -1666]
MF2='NM':'trimf',[-2500 -1666 -833.5]
MF3='NS':'trimf',[-1666 -833.5 0]
MF4='ZE':'trimf',[-833.5 0 833.5]
MF5='PS':'trimf',[0 833.5 1666]
MF6='PM':'trimf',[833.5 1666 2500]
MF7='PB':'trimf',[1666 2500 3335]
[Output1]
Name='pwm'
Range=[-800 800]
NumMFs=7
MF1='NB':'trimf',[-1067 -800 -532.8]
MF2='NM':'trimf',[-800 -532.8 -266.9]
MF3='NS':'trimf',[-532.8 -266.9 0]
MF4='ZE':'trimf',[-266.9 0 267.2]
MF5='PS':'trimf',[0 267.2 532.8]
MF6='PM':'trimf',[267.2 532.8 800]
MF7='PB':'trimf',[532.8 800 1067]
[Rules]
1 1, 1 (1) : 1
1 2, 1 (1) : 1
1 3, 2 (1) : 1
1 4, 2 (1) : 1
1 5, 3 (1) : 1
1 6, 3 (1) : 1
1 7, 4 (1) : 1
2 1, 1 (1) : 1
2 2, 2 (1) : 1
2 3, 2 (1) : 1
2 4, 3 (1) : 1
2 5, 3 (1) : 1
2 6, 4 (1) : 1
2 7, 5 (1) : 1
3 1, 2 (1) : 1
3 2, 2 (1) : 1
3 3, 3 (1) : 1
3 4, 3 (1) : 1
3 5, 4 (1) : 1
3 6, 5 (1) : 1
3 7, 5 (1) : 1
4 1, 2 (1) : 1
4 2, 3 (1) : 1
4 3, 3 (1) : 1
4 4, 4 (1) : 1
4 5, 5 (1) : 1
4 6, 5 (1) : 1
4 7, 6 (1) : 1
5 1, 3 (1) : 1
5 2, 3 (1) : 1
5 3, 4 (1) : 1
5 4, 5 (1) : 1
5 5, 5 (1) : 1
5 6, 6 (1) : 1
5 7, 6 (1) : 1
6 1, 3 (1) : 1
6 2, 4 (1) : 1
6 3, 5 (1) : 1
6 4, 5 (1) : 1
6 5, 6 (1) : 1
6 6, 6 (1) : 1
6 7, 7 (1) : 1
7 1, 4 (1) : 1
7 2, 5 (1) : 1
7 3, 5 (1) : 1
7 4, 6 (1) : 1
7 5, 6 (1) : 1
7 6, 7 (1) : 1
7 7, 7 (1) : 1
2 Comments
Walter Roberson
on 10 Dec 2011
http://www.mathworks.com/matlabcentral/answers/13205-tutorial-how-to-format-your-question-with-markup
vinayaga murugan
on 10 Dec 2011
Answers (1)
Walter Roberson
on 10 Dec 2011
Quoting myself from a recent thread,
More of a problem is that MS Windows from NT on upwards has actively shielded parallel ports (and any direct hardware access in general, but more so for anything that uses IN/OUT instructions like parallel ports do) behind multiple layers of security, increasingly so in newer Windows versions. The layers of security mean slower access.
MathWorks has had a heck of a time trying to work around those security layers, and has already indicated that support for parallel ports will be withdrawn within a small number of releases because of the difficulties.
It is not recommended that any new projects be created using the parallel port, especially not for time-sensitive uses. Using a D/A converter is recommended instead.
4 Comments
vinayaga murugan
on 11 Dec 2011
Walter Roberson
on 11 Dec 2011
Sorry, I do not have the appropriate toolboxes. What I do have is a personal policy of not doing people's assignments or homework or projects or thesis for them.
http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer
vinayaga murugan
on 11 Dec 2011
Walter Roberson
on 11 Dec 2011
Other people probably are not going to read your question until you format it. http://www.mathworks.com/matlabcentral/answers/13205-tutorial-how-to-format-your-question-with-markup
Communities
More Answers in the Power Electronics Control
Categories
Find more on Fuzzy Logic Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!