Documentation

Image Receive

Image Receive block

Library

Simulink® Real-Time™ Library for Video Utilities

Description

The Image Receive block receives the video from the target computer at the IP address and port pair.

Block Outputs

NameDescription

Data

Vector of byte containing video data received by block.

Status

1 if the block received a full fixed-length frame, and otherwise 0.

Visible when the Allow variable length packets check box is cleared (default).

Length

Number of bytes received.

Visible when the Allow variable length packets check box is set.

Block Parameters

IP address to receive from (0.0.0.0 for accepting all)

Enter a valid IP address as a dotted decimal character vector for the source address, for example, 10.10.10.3. You can also use a MATLAB® expression that returns a valid IP address as a character vector.

The default address, 0.0.0.0, enables the acceptance of frames from any accessible target computer. If set to a specific IP address, packets arriving from only that IP address are received.

The IP port to receive from parameter specifies the port for the source.

IP port to receive from

Specify the port of the target computer from which to receive the video frames. The IP address to receive from (0.0.0.0 for accepting all) parameter specifies the IP address for the source.

Use the following local IP port (-1 for automatic port assignment)

Specify the port of the target computer receiving the video frames.

Enter -1 to automatically assign a port for the target computer.

Allow variable length packets

Select this check box to enable the reception of variable-length frames. For example, use this option for compressed frames, because the length of each frame varies. Selecting this block changes the default Status output port to the Length output port.

Sample time

Enter the base sample time or a multiple of the base sample time (-1 means sample time is inherited).

Was this topic helpful?