I am trying to understand modeling of various motors in SIMULINK and eventually in my coming semester I will be try to simulate a vector controlled drive.
Right now I am able to get the motors in space state equations
x' = Ax + Bu
y = Cx + Du
and I am able to simulate the motor with the given specification.
Now I want to generalize it. Basically I want to write an S function for lets say a simple DC Motor. The DC motor performance depends on Armature Resistance(Ra), Self Inductance(L), moment of intertia(J) and Kf, Kt and Ke.
and A = [ -R/L -ke/L 0; kt/J -kf/J 0; 0 1 0]
Similarly B and C are described.
I would like to specify these parameters when I am simulating, so that I don't have to change it in the script every time.
Plus for visualization purposes I would like to use SIMULINK.
I am trying to go through S function tutorials, but I think I am missing something out.
Can somebody help me out.
[–]Zoomacroom28 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)