Effacer les filtres
Effacer les filtres

How can i open the vr sink block of simulink directly from matlab code?

3 vues (au cours des 30 derniers jours)
Giada
Giada le 8 Juin 2023
Réponse apportée : Tushar le 9 Juin 2023
Hi!
I am doing an experiment in simulink and I would like to know if there is a way to directly open the vr sink block of simulink(where I built the whole set-up) from matlab. From matlab I already control the start of the simulation with this command...set_param(themodel,....'SimulationCommand', 'start'). Thanks
(solved)

Réponses (1)

Tushar
Tushar le 9 Juin 2023
Hi Giada,
You can try using the 'vrshow' command. If you have already built your virtual reality set-up using the VR sink block in Simulink, you can include the vrshow command in your MATLAB script after your set_param command to launch the VR viewer and visualize the simulation output.

Catégories

En savoir plus sur Simulink Functions dans Help Center et File Exchange

Produits


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by