udp_send_demo

>Psychtoolbox>PsychHardware>iViewXToolbox>tcp_udp_ip

UDP_SEND_DEMO - a demo that sends a squence of doubles in network byte order to local or remote host

Syntax:
UDP_SEND_DEMO
or
UDP_SEND_DEMO function_string
or
UDP_SEND_DEMO function_string hostname
or
UDP_SEND_DEMO function_string hostname portnumber

Default values:
function_string is by default sin(0:0.1:6) that will be evaluated and transmitted
as a sequence of network byte ordered doubles (or generated datatype)

hostname is by default localhost but can be any hostname if you whant to send
the packet to an other host.

portnumber is by default 3333.

The purpose of this demo is to illustrate how a udp packat can be created, filled with numbers
and then transmitted to any host and udp port. Use this demo together with udp_plotter_demo
that receives and plott the packets of numbers.

Example:

udp_send_demo sin(0:0.1:50)./(0:0.1:50) plotterhost 33333

Path   Retrieve current version from GitHub | View changelog
Psychtoolbox/PsychHardware/iViewXToolbox/tcp_udp_ip/udp_send_demo.m