Frame Rate Display

Calculate average update rate of input signal

Library

Sinks

visionsinks

Description

The Frame Rate Display block calculates and displays the average update rate of the input signal. This rate is in relation to the wall clock time. For example, if the block displays 30, the model is updating the input signal 30 times every second. You can use this block to check the video frame rate of your simulation. During code generation, Simulink® Coder™ does not generate code for this block.

    Note:   This block supports intensity and color images on its port.

PortInputSupported Data TypesComplex Values Supported

Input

M-by-N matrix of intensity values or an M-by-N-by-P color video signal where P is the number of color planes

  • Double-precision floating point

  • Single-precision floating point

  • Fixed point

  • Boolean

  • 8-, 16-, and 32-bit signed integer

  • 8-, 16-, and 32-bit unsigned integer

No

Use the Calculate and display rate every parameter to control how often the block updates the display. When this parameter is greater than 1, the block displays the average update rate for the specified number of video frames. For example, if you enter 10, the block calculates the amount of time it takes for the model to pass 10 video frames to the block. It divides this time by 10 and displays this average video frame rate on the block.

    Note:   If you do not connect the Frame Rate Display block to a signal line, the block displays the base (fastest) rate of the Simulink model.

Dialog Box

The Frame Rate Display dialog box appears as shown in the following figure.

Calculate and display rate every

Use this parameter to control how often the block updates the display.

See Also

To Multimedia File

Computer Vision System Toolbox™ software

To Video Display

Computer Vision System Toolbox software

Video To Workspace

Computer Vision System Toolbox software

Video Viewer

Computer Vision System Toolbox software

Was this topic helpful?