Write line of ASCII data to UDP socket
writes the ASCII data
data, followed by the terminator, to the specified
u must be a byte-type
udpport object. The function
waits until the data and terminator are written to the UDP socket, or until a timeout
the ASCII data to the last used
destinationPort. If you do not specify
destinationPort in a previous
writeline for the UDP socket
u, this syntax throws an error.
Write start and stop commands to a UDP socket.
Create a UDP socket and write an ASCII
"START" string to a
specified address and port.
u = udpport; writeline(u,"START","188.8.131.52",20)
The function appends the default terminator to the written string.
Write an ASCII
"STOP" string to the same address and port.
u— UDP socket
UDP socket, specified as a
u = udpport
data— String to write to
String to write to
udpport socket, specified as a string or
character vector. The terminator is appended. If the size of
greater than the
OutputDatagramSize property of the UDP socket
u, the function splits the data into multiple packets.
destinationAddress— Destination address to write to
Destination address to write to, specified as a string or character vector. If you
do not provide this argument, the function writes to the last used
destinationAddress. When you write to this address and port for the
destinationAddress is required.
destinationPort— Destination port to write to
Destination port to write to, specified as a numeric value from 0 to 65535. If you
do not provide this argument and the
destinationAddress, the function
writes to the last used
destinationPort. When you write to this
address and port for the first time,