Reading the Buffered Data a Server Writes

After you specify a buffer size using DataSocket functions, you can read the buffered data.

Complete the following steps to read the buffered data a server writes.

  1. Add a While Loop to the block diagram.

     Add  Find
  2. Add the DataSocket Read function in the While Loop.

     Add  Find
  3. Wire a control or constant to the type input of the DataSocket Read function. The data type of the control or constant must match the data type of the data you expect to read. The default data type is the variant data type. If you are unsure of the data type of the data you expect to read or if another application generates the data, use the variant data type. You can convert variant data to data that LabVIEW can manipulate.
  4. Wire the connection id output of the Property Node you created when you specified the buffer size on the client to the connection in input of the DataSocket Read function.

After you read the buffered data, you can monitor the size of the buffer.