LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Shared varialble FIFO -- ensure no lost of data

Hi,

 

      I would like to use network shared variable to send data from a VI ont the RT controller of my CompactRIO to the Host VI that runs on my computer. I did a like VI to understand the way shared variable works but I didn't find the right properties to ensure that I'm not losing the data. 

 

Does somebody could help me with that?

 

0 Kudos
Message 1 of 2
(2,450 Views)

Network Streams in LV 2010 are designed for lossless data transfer.  NSV's do not guarantee to be lossless, you would have to add a data index count to a data cluster so that integrity could be verified.  There are examples of lossless tcpip RT->Windows transfer at ni.com.

 

Another thing to consider is that sometimes you do not need data transfer to be 'lossless' to have a good record of physical data on the rt.  In my case I use the cRIO scan engine to update IOV's at 40Hz,  I then transfer IOV data to cRIO hosted NSV's which are bound to windows hosted NSV's which in turn are set to log to a citadel database.  In effect I am getting a final 20Hz 'sampled' data stream into my DB.  Does my system guarantee that a 50ms signal transient will always get caught and logged in the DB?  No is does not, but for those kind of issues I usually rely on rt processes to catch such events and generate alarms.

0 Kudos
Message 2 of 2
(2,434 Views)