| Instrument Control Toolbox | ![]() |
Event Types and Callback Properties
The event types and associated callback properties supported by TCP/IP and UDP objects are listed below.
| Event Type |
Associated Properties |
| Bytes available | BytesAvailableFcn |
BytesAvailableFcnCount |
|
BytesAvailableFcnMode |
|
| Datagram received |
DatagramReceivedFcn (UDP objects only) |
| Error |
ErrorFcn |
| Output empty |
OutputEmptyFcn |
| Timer | TimerFcn |
TimerPeriod |
The datagram-received event is described below. For a description of the other event types, refer to Event Types and Callback Properties.
Datagram-received Event. A datagram-received event is generated immediately after a complete datagram is received in the input buffer.
This event executes the callback function specified for the DatagramReceivedFcn property. It can be generated for both synchronous and asynchronous read operations.
| Events and Callbacks | Storing Event Information | ![]() |