Documentation

Image Receive

Receive video image

  • Library:
  • Video / Video Utilities

Description

Specify the source computer that the Image Receive block receives a video image from by using the IPv4 address-and-port pair.

Ports

Output Arguments

expand all

Byte vector containing video data received by the block.

Outputs 1 if the block received a full fixed-length frame. Otherwise, outputs 0.

Dependency

This output is available when the Allow variable length packets check box is not selected.

Outputs the number of bytes that the block received.

Dependency

This output replaces the Status output when you select the Allow variable length packets check box.

Parameters

expand all

Enter a valid IPv4 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 IPv4 address as a character vector.

The default address, 0.0.0.0, enables the block to accept frames from any accessible computer. If you set this parameter 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.

Specify the port of the computer from which to receive the video frames.

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

Number of bytes that the block can output in one sample time.

Dependency

  • Allow variable length packets is selected:

    • Data size > Output port width — Block ignores the packet.

    • Data size ≤ Output port width — Block outputs packet data through the Data port and packet length through the Length port. Use packet length to consume data.

  • Allow variable length packets is not selected:

    • Data size ≠ Output port width — Block ignores the packet.

    • Data size = Output port width — Block outputs packet data through the Data port. The Status port is set to 1.

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.

Dependency

Selecting this parameter replaces the default Status output port with the Length output port.

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

Introduced in R2011a

Was this topic helpful?