Configuring Buffering

NI DataSocket Server

Configuring Buffering

Launch the DataSocket Server Manager by selecting Start»Programs»National Instruments»DataSocket»DataSocket Server Manager to configure buffering constraints. Buffering constraints set the maximum size of the buffer in terms of packets and in terms of bytes. These constraints prevent a buffer from growing unbounded and consuming excessive memory.

Complete the following steps to configure server-side buffering for predefined data items or to to configure default buffering constraints for dynamically created data items.

Buffering Constraints for Predefined Data Items

  1. Create a predefined data item. By default, the DataSocket Server Manager sets the maximum buffer size to 25 MB and 1 packet, effectively providing unbuffered behavior.
  2. To override the default buffering constraints, select the data item from the Predefined Data Items category and specify new Max Buffer Bytes and Max Buffer Packets values.

Buffering Constraints for Dynamically Created Data Items

You can specify default buffering constraints that apply to all data items created dynamically on the DataSocket Server. Any dynamic data item residing on the DataSocket Server inherits the default buffering constraints when the DataSocket Server creates the data item.

  1. Select DfltBufferMaxBytes from the Server Settings category and set the new maximum buffer size in bytes.
  2. Select DfltBufferMaxPackets from the Server Settings category and set the new maximum buffer size in packets.