Procedure for using the NetworkWriter step


The following provides a basic methodology for using the NetworkWriter step:

  1. Specify the Connection name. Note that the connection must be successfully established before information can be sent. For more information on how to establish a connection, refer to the Procedure for using the NetworkConnection step section earlier in this chapter. To ensure that the connection is valid, use a condition linked to the status of a NetworkConnection step with its Operation input set to Verify.

  2. If using UDP, specify the Port number to which the data will be sent. By default, this value is set to 5555. Note that different ports can be used to receive and to send data.

  3. Specify the Data to send to your network client either by typing in text, linking a value, or building an expression. For more information about using expressions with string inputs, see the Strings subsection of the Data types section in Appendix A: Expression syntax.

  4. To send an image, use the ImageWriter step rather than the NetworkWriter step. For more information, refer to Chapter 33: ImageWriter step.

To test your project, you can use the Matrox Network Client utility to receive a message from your runtime platform.