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

조회 수: 1 (최근 30일)
Giada
Giada 2023년 6월 8일
답변: Tushar 2023년 6월 9일
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)

답변 (1개)

Tushar
Tushar 2023년 6월 9일
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.

카테고리

Help CenterFile Exchange에서 Interactive Model Editing에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by