LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Use of Shared Variables with RT-project / Host-VI

Solved!
Go to solution

Hi all,

 

I have a short question, that's certainly easy to answer for those who have ever worked with a RT-VI containing two timed loops and a user-interface which is deployed on a host PC.

 

Q: Is there an advantage to acquiring data in the time-critical loop using a single process shared variable (FIFO enabled) and then passing the data on to the host PC in the non-deterministic loop over simply using a network-published shared variable (again FIFO enabled) that directly passes the data over to the host PC?

 

Thanks in advance,

David

Message 1 of 2
(2,725 Views)
Solution
Accepted by topic author Kolibri

Hi Kolibri,

 

The advantage of having the network published variables in your non-deterministic loop as opposed to the time-critical loop is that it reduces the resources required to run the time-critical loop.

 

Sending the data to a different loop within the same program with single process shared variables or with RT FIFOs requires less overhead than sending data over the network. This allows the high priority loop to run more deterministically without having to manage network communication.

 

Regards,

Stephen S.
National Instruments
Applications Engineering
Message 2 of 2
(2,696 Views)