User`s guide
2 Importing and Exporting Video
5 UsetheGain1blocktochangethebluevaluesofthevideostream.Setthe
block parameters as follows:
• Main pane, Gain =
1.5
• Signal Data Types pane, Output d ata type mode = Same as input
6 UsetheWriteAVIFileblocktoexportthevideotoanAVIfile.SettheFile
name para m eter to
my_test_file.avi.
7 If you have not already done so, set the config uration parameters. Open
the Configuration dialog box by selecting Simulation > Configuration
Parameters. Set the parameters as follows:
• Solver pane, Stop time =
20
• Solver pane, Type = Fixe d-st ep
• Solver pane, Solver = discr ete (no continuous states)
8 Run your model.
You ca n view your v ideo in the Video Viewer window. The Write AVI File
block exports the v ideo data from the Simulink model to an AVI file that it
creates in your current directory.
2-8