Simulink animation for BLDC motors

조회 수: 9 (최근 30일)
Beniamin Stiopu
Beniamin Stiopu 2020년 8월 13일
댓글: Ruisen 2025년 1월 31일
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
Yakshraj
Yakshraj 2023년 6월 1일
same think with me
what are the condition/ steps for this
>>animateRotorPosition
Ruisen
Ruisen 2025년 1월 31일
@Yakshraj Have you worked out the solution? same problem

댓글을 달려면 로그인하십시오.

채택된 답변

hosein Javan
hosein Javan 2020년 8월 13일
편집: hosein Javan 2020년 8월 13일
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
Mahmoud Khalid
Mahmoud Khalid 2020년 9월 23일
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 2024년 11월 12일
How did you get the flux output from simscape BLDC motor block?

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

jaeyeon park
jaeyeon park 2021년 2월 15일
I think you are looking for this add-on
Design-motor-controllers-with-Simscape-Electrical

카테고리

Help CenterFile Exchange에서 View and Analyze Simulation Results에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by