Hello there, I’m kind of new to scilab so I’ll introduce myself: I’m Shon_Shon, I’m a college student studying awesome control, robotics and informatics stuff, and I found scilab because of xcos and it’s use for modeling systems.
I am currently doing a proyect where I model a permanent magnet synchronous motor and a controller with a reduced observer for it based on a guide given to me by a teacher. It works really well when the sensors and modulator are ideal, but as soon as I added second order transfer functions to the sensors and modulator it all went unstable. I need to make the sensor extremely fast for the system to barely converge. Some of my classmates did the project in simulink and theirs didn’t have that problem.
I added lot’s of graphs to see what is going on, but apparently it just starts like a small vibration in the current that grows more with each cycle until it eats the original signal.
The reference signal is the integral of a triangle curve that starts at 0, goes up, goes down and returns to 0.
I just don’t know what to do.
I’ll send the system models with and without delays so you can compare them, and also a functions file you need to execute before simulating.
If any wizard out there could take a look, say “Elemental, dear Watson” and tell me why it’s diverging I would be extremely grateful.
park.sce (1.3 KB) (functions file)
prueba_integracion_moduladores_4_err.zcos (45.2 KB) (model that diverges)
prueba_integracion_moduladores_2.zcos (39.7 KB) (model that doesn’t)