How can I use the scope in my model while running a the host model?

1 view (last 30 days)
Irfan Guven Comezoglu
Irfan Guven Comezoglu on 10 Apr 2022
Answered: Keyur Mistry on 18 May 2022
I'm trying to use the Field Oriented Contol of PMSM using hall sensor,, and want to add scopes to variables in the model so that I can see how they change in real time. The model and the host model works fine but I can't seem to get the scopes to work. After I add scopes to the main model, when I try to run the host model and see what the scopes are showing, all I get is the simulation results. They do not change according to me running the kit in real time.

Answers (1)

Keyur Mistry
Keyur Mistry on 18 May 2022
To observe variable in real time, we are supposed to send variable data from controller to MATLAB host model via serial communication.
Pleaes ensure the variable you want observe in real time is being sent through "SCI Transmit" block in target model (main model) and being received thorugh "Host Serial Receive" block in host model.

Community Treasure Hunt

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

Start Hunting!