Why is the hardware scope output for my motor not displaying the correct waveform?
7 views (last 30 days)
Show older comments
MathWorks Support Team
on 20 Dec 2023
Answered: MathWorks Support Team
on 21 Dec 2023
I am running an open loop motor in sensorless mode, using the "mcb_pmsm_foc_host_model_f28379d" example Simulink model to do so. There are no issues with the model simulation or getting the motor to spin after deployment. The issue is that no matter which signals are selected in the host model, the scope waveform output from the hardware is not correct.
Accepted Answer
MathWorks Support Team
on 20 Dec 2023
The reason why you are not seeing the expected output during live simulation is because the target-host communication in most of the MCB examples are frame based. The target sends data in every sample of 50e-6 sec (20 KHz). However, the host computer cannot sample at such high speed, hence the host model samples data once per 600 samples (0.03e-3 sec).
Hence the scopes in the host model are set to frame based. The triggers may not work as expected when communication is live in frame based scope.
The recommended workflow to get the expected output is to run the motor, capture data and then analyze the response offline after the host simulation is stopped.
0 Comments
More Answers (0)
See Also
Categories
Find more on Deployment and Validation 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!