| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Video and Image Processing Blockset |
| Contents | Index |
| Learn more about Video and Image Processing Blockset |
Sinks

The To Video Display block sends video data to your computer screen.
Note This block supports code generation and is only available on Windows platforms that have file I/O available. This excludes RTWin (Real-Time Windows Target). This block performs best on platforms with DirectX Version 9.0 or later and Windows Media Version 9.0 or later. |
| Input | Description |
|---|---|
Image | M-by-N matrix of intensity values or an M-by-N-by-3 color video signal |
R, G, B | Matrix that represents one plane of the RGB video stream. Inputs to the R, G, or B ports must have the same dimensions and data type. |
For the block to display video data properly, double- and single-precision floating-point pixel values must be from 0 to 1. For any other data type, the pixel values must be between the minimum and maximum values supported by their data type.
Select Full-screen to display your video stream in a full-screen window. Use the Esc key to exit or to return to other applications, hold down the Alt key and press the Tab key. The display window will revert to previous size if other blocks open additional display windows.
Window size and position
Size
and position of the display window is saved when the model is saved.
Any changes while working with the model should be saved again in
order that these preferences are maintained when the model runs.
Host or external monitor visibility
When running a model that contains a To Video Display block, the output of the block might be visible on the host monitor but not the external monitor or vice versa. There are two ways to work around this problem:
Replace the To Video Display block
with a Video Viewer block.
or
Disable the DirectDraw Acceleration, Direct3D Acceleration, and AGP Texture Acceleration on your system.
Start > Run.
For the Open parameter, type dxdiag. Click OK. The DirectX Diagnostic Tool opens.
On the Display tab, click the Disable buttons that are next to DirectDraw Acceleration, Direct3D Acceleration, and AGP Texture Acceleration.
Click Exit.
The To Video Display appears as shown in the following figure.

Rapid Accelerator mode
If your model is set to run in Rapid Accelerator mode, the menu options will not be available. In particular, if Open at Start of Simulation is unchecked, the block will not be included during the run, and therefore the video display will not be visible. For Rapid Accelerator mode, menu preferences are saved only when the model is compiled. To change any of the menu options, change the model to run in Normal mode, and re-save it. You can then run in Rapid Accelerator mode with the new preferences.

Select Full-screen mode to display your video stream in a full screen window.
Select Open at Start of Simulation from the View menu for the display window to appear while running the model. If this is not selected, double click the block to display the window.
Select the Image signal from the Settings menu to specify how the block accepts a color video signal. If you select One multidimensional signal, the block accepts an M-by-N-by-3 color video signal at one port. If you select Separate color signals, additional ports appear on the block. Each port accepts one M-by-N plane of an RGB video stream.
Select Preferences from the Settings menu to view or modify Video and Image Processing Blockset Preferences
The Help menu provides direct links to the To Video Display reference help, Video and Image Processing Blockset reference help, and version information.
| Port | Supported Data Types |
|---|---|
Image |
|
R, G, B | Same as Image port |
Video and Image Processing Blockset software | |
Video and Image Processing Blockset software | |
Signal Processing Blockset software | |
Video and Image Processing Blockset software | |
Video and Image Processing Blockset software |
![]() | To Multimedia File | Top-hat | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |