Simulink animation for BLDC motors

13 visualizaciones (últimos 30 días)
Beniamin Stiopu
Beniamin Stiopu el 13 de Ag. de 2020
Comentada: Ruisen el 31 de En. de 2025
Hi my name is Beniamin and I am trying to simulate a BLDC motor design in simulink as is shown in this MathWorks video:
https://es.mathworks.com/videos/how-to-design-motor-controllers-using-simscape-electrical-part-1-simulating-back-emf-voltage-of-a-bldc-motor-1565241566392.html
When I try to animate the simulation by the function 'simulate', Matlab does not recognise it.
>> animateRotorPosition
Unrecognized function or variable 'animateRotorPosition'.
I am using a MATLAB R2019b - academic use version.
Thank you
  3 comentarios
Yakshraj
Yakshraj el 1 de Jun. de 2023
same think with me
what are the condition/ steps for this
>>animateRotorPosition
Ruisen
Ruisen el 31 de En. de 2025
@Yakshraj Have you worked out the solution? same problem

Iniciar sesión para comentar.

Respuesta aceptada

hosein Javan
hosein Javan el 13 de Ag. de 2020
Editada: hosein Javan el 13 de Ag. de 2020
I didn't see anything about animate in that video. however I propose after running the simulation, save your data including time vector to workspace. then using this code you can animate the plot. for example you want to plot flux vector vs rotor position at each time sample:
n = length(time); % number of samples
% theta_r = rotor position
% psi = flux
for i=1:n
% plot your data here
plot(theta_r(i),psi(i))
drawnow
end
  6 comentarios
Mahmoud Khalid
Mahmoud Khalid el 23 de Sept. de 2020
Actually I have the same question And I want to know why the Data Inspector icon enabled at the min 6:30 I think that's the key to open that command window
KRISHNA
KRISHNA el 12 de Nov. de 2024
How did you get the flux output from simscape BLDC motor block?

Iniciar sesión para comentar.

Más respuestas (1)

jaeyeon park
jaeyeon park el 15 de Feb. de 2021
I think you are looking for this add-on
Design-motor-controllers-with-Simscape-Electrical

Categorías

Más información sobre View and Analyze Simulation Results en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by