Creating a Shared Variable with Real-Time FIFO (Real-Time Module)

You can create a shared variable and enable the real-time FIFO to deterministically share data locally on an RT target or across a network with VIs on another target. However, RT FIFOs do not support data types of variable size, such as clusters, strings, and variants.

Complete the following steps to create a shared variable and enable the real-time FIFO:

  1. Right-click the RT target on which you want to create the shared variable and select New»Variable from the shortcut menu to open the Shared Variable Properties dialog box.
  2. Enter a name for the variable in the Name text box.
  3. Select the data type for the variable from the Data Type pull-down menu.
  4. Select Single-Process or Network-Published from the Variable Type pull-down menu.
  5. Click Real-Time FIFO in the Category list to open the Real-Time FIFO page.
  6. Place a checkmark in the Enable Real-Time FIFO checkbox.
  7. Select Single element or Multi-element to create a FIFO buffer with a single element or a FIFO buffer with multiple elements.
  8. If you select Single element, configure the size for the array elements or the size of the waveform for the FIFO element if you select an array or waveform data type.

    If you select Multi-element, configure the size and the elements of the FIFO buffer to match the settings from the Use Buffering section of the Network page, or you can configure a custom size for the FIFO and the FIFO elements.
  9. Click the OK button.

Data Communication Methods Home


Not Helpful