User`s guide
4 MATLAB Interface
4-20
If the description string is unique, myworld is assigned the correct virtual world.
4
To retrieve the handle to the currently displayed the Simulink 3D Animation Viewer
figure, type
f=get(myworld,'Figures')
5
To have the software manually record the animation, set the RecordMode property
to manual. Type
set(myworld,'RecordMode','manual');
6
Direct the Simulink 3D Animation software to record the animation as a .avi
format file. Type
set(f,'Record2D','on');
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
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 or stop the
simulation.
• From the toolbar, click Start/pause/continue simulation to start the
simulation.
• From the keyboard, press Ctrl+T to start the simulation.
9
As the simulation runs, start recording the animation by setting the virtual world
Recording property. Type
set(myworld,'Recording','on');
This turns on the recording state.
10
To stop the recording operation, type
set(myworld,'Recording','off');