UDPServer

This block starts a UDP server.

    UDPServer

Description

This block checks for the presence of a udp packet on a specified port number. If present, it outputs the packet as a vector of type uint8 on its first output and outputs 1 on its second output to indicate the arrival of new packet. If not present, the first output remains unchanged and the second output is set to 0.

Parameters

UDPServer_0

NameLabelDescriptionData TypeValid Values

port

Port number

Defines the port number to use

Scalar

timeout

Timeout

Defines the timeout period in milli seconds

Scalar

sz

Packet size

Defines the packet size. If set to -1, it is computed automatically.

Scalar

Ports

NameTypeDescriptionIO TypeNumber

data

explicit

Outputs the packet content as vector of unit8 if a new value is available. Otherwise previous value is conserved.

output

1

rec.

explicit

Outputs 1 if a new value is available and 0 otherwise.

output

2

Port 3

activation

input

1