You can use shared variables to share data among VIs in a project or across a network. The Real-Time FIFO of network-published shared variables enables you to share data between VIs on different targets across a network without affecting the determinism of the VI. However, network-published shared variables transfer data across the network non-deterministically. The following figure shows a network-published shared variable that is sharing data with another VI on a different RT target.

The network-published shared variable transfers the data to the Shared Variable Engine (SVE) running on the RT target and the SVE then transfers the data to the SVE on the other RT target using non-deterministic communication.
Time-triggered shared variables transfer data across a closed private network, or time-triggered network, deterministically. Other RT targets on the time-triggered network then can access the data.

Time-triggered communication with the LabVIEW Real-Time Module requires you to configure RT targets for time-triggered communication, create and configure time-triggered shared variables, and to configure the settings of the time-triggered network.
Deterministic network communication using time-triggered shared variables requires you to configure RT targets with two Ethernet devices. One Ethernet device, the primary, connects to the public Ethernet network and communicates with LabVIEW on the host computer. You can deploy software and applications to the RT target though this connection from the host computer. If the RT target has an onboard Ethernet device, that device is the primary device by default.
A second Ethernet device connects RT targets to a closed private network, or time-triggered network, that you must then configure for time-triggered communication. The secondary Ethernet device connects to the secondary Ethernet devices of other RT targets using a crossover cable, network hub, or non-blocking Ethernet switch to create the time-triggered network. All time-triggered communication is done across the time-triggered network of the secondary Ethernet devices.
The following figure shows a network of PXI RT targets that are set up as a time-triggered network. Notice the closed private network used for the time-triggered communication between the RT targets and the public network used to communicate with the host computer.

You can create time-triggered shared variables under an RT target in the Project Explorer window. A time-triggered shared variable can use one of two different communication styles.


![]() |
Note You cannot specify a specific order for the transmission of data using time-triggered shared variables configured with the As part of the shared memory blocks option. However, the During a dedicated time slot within the network cycle option requires a small added overhead in the transmission times for each variable. The overhead is minor but might be significant when working with smaller data types such as scalars. |
After configuring the RT target for time-triggered communication and creating time-triggered shared variables, you must configure the time-triggered network.
Use the Network Configuration dialog box to configure the time-triggered network. Select Tools»Real-Time Module»Configure Time-triggered Network from the Project Explorer window to open the Network Configuration dialog box. The Network Configuration dialog box displays a tree view of the time-triggered network. The top-level parent node is the Network node which represents the time-triggered network. The Network node contains child nodes for each RT target on the time-triggered network that is configured for time-triggered communication. Each Target node contains a node for each time-triggered shared variable hosted on that RT target.
You can click the Network, Target, and Shared Variable nodes on the Network Configuration dialog box to display a configuration page for the node on the right side of the dialog box. The Network Configuration dialog box displays a timeline graph at the bottom of the window that represents the current configuration of the time-triggered network cycle.
The following figure shows a time-triggered network configured with a 300 microsecond network cycle that begins the transmission of shared memory block variables 100 microseconds into the network cycle and then transmits a dedicated block variable 189 microseconds into the network cycle.

To share data using time-triggered shared variables, drag the shared variable from the Project Explorer window to a block diagram. You also can place a Shared Variable node on the block diagram and then right-click the node and select Select variable from the shortcut menu to select the time-triggered shared variable.
By default, the Shared Variable node is set to read. To change the Shared Variable node on the block diagram to write, right-click the Shared Variable node and select Change to write from the shortcut menu. The following block diagram shows a Shared Variable node, TT_Var1, that reads the value of a time-triggered shared variable and then adds a value of 10. The block diagram then writes the results to a Shared Variable node, TT_Var2, that can be read by other RT targets on the time-triggered network.

You can create a time-triggered timing source to control the execution of a timed structure in a VI running on an RT target. Time-triggered timing sources trigger when a specified event in the time-triggered network occurs. Use the Create Time Triggered Network Timing Source VI to detect the events of a time-triggered network timing source and then control the timing of a timed structure.