Borrar filtros
Borrar filtros

Simulink 3D Animation on "Monitor and Tune" mode

2 visualizaciones (últimos 30 días)
Gaia Foroni
Gaia Foroni el 16 de Mzo. de 2023
Comentada: Gaia Foroni el 20 de Mzo. de 2023
Hi, I'm trying to carry out a Simulink simulation on an STM32 Nucleo F401RE board and I also wanted to simulate the behavior of the physical system using Simulink 3D Animation based on parameters calculated in real time using the microcontroller.
However, when I activate the "Monitor and Tune" mode to run the process on the board, the virtual system loaded in the "VR Sink" block is unable to read the input parameters.
Is it possible to use both methods together?
In the case in the figure, I have a physical encoder from which the speed of a wheel controlled by a microcontroller is calculated and I want to use this data in the 3D animation

Respuestas (1)

Jan Houska
Jan Houska el 17 de Mzo. de 2023
Hi Gaia,
Simulink 3D Animation is able to work with hardware targets that use the classic External Mode communication protocol. This is the same protocol that the Scope block uses. So if you are able to use the Scope block, you should be able to use the VR Sink block for the same signal. Please take a look at the vrmaglev_sldrt shipping example that shows exactly this.
However, I'm not sure if the STM32 Nucleo target supports classic External Mode. So the answer may be actually "no" for your particular target.
Jan

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by