User`s guide
4 MATLAB Interface
4-26
3
To retrieve the handle to the currently displayed Simulink 3D Animation Viewer
figure, type
f=get(myworld,'Figures')
4
To have the Simulink 3D Animation software manually record the animation, set the
RecordMode property to manual. Type
set(myworld,'RecordMode','scheduled');
5
Direct the Simulink 3D Animation software to record the animation as an .avi
format file. Type
set(f,'Record2D','on');
6
Select the start and stop times during which you want to record the animation. For
example, enter 5 as the start time and 15 as the stop time.
set(myworld,'RecordInterval',[5 15]);
Ensure that the recording start time value is not earlier than the start time of the
Simulink model; the recording operation cannot start in this instance. If the stop
time exceeds the stop time of the Simulink model, or if it is an out of bounds value
such as a negative number, the recording operation stops when the simulation stops.
Note that the recording can be slow.
7
Disable the Navigation Panel. The Navigation Panel appears at the bottom of the
virtual scene view. You might want to turn off this panel for a cleaner view of the
virtual scene. Type
set(f,'NavPanel','none');
8
Ensure that the virtual reality figure window is the topmost window.
9
Run the Simulink model. From the Simulation menu, select Mode > Normal, then
click Simulation > Run. Alternatively, if you are using the Simulink 3D Animation
default viewer, you can run the Simulink model with one of the following from the
viewer:
• From the menu bar, select the Simulation menu Start option to start the
simulation.
• From the toolbar, click Start/pause/continue simulation to start the
simulation.
• From the keyboard, press Ctrl+T to start the simulation.