LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a limit to the number of elements in network shared variable array? Can I change the variable array size?

There is no limit really for the size of the array. And yes you can change the size of the array. Just remember that both these options if used carelessly can end up clogging up the network

 

Amit

0 Kudos
Message 2 of 5
(3,813 Views)

Amit Jayakaran wrote:

There is no limit really for the size of the array. And yes you can change the size of the array. Just remember that both these options if used carelessly can end up clogging up the network

 

Amit


Can you expand on this a little?

 

Say I want to store a 12 G array in the Shared Variable, do still want to stick with that answer?

 

What is a reasonable number taking into concideration the memory limits of tha hardware and reserving spcae to all the OS and ap to run efficiently.

 

So I'm looking for a real number.

 

Thank you,

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 3 of 5
(3,805 Views)

Let me explain what I am experiencing a bit more.  I have a RT PXI Target and a Host PC.  I am transferring an array of data up to the host as well as transferring an array of booleans (commands) down to the target.  In the spirit of 'good' programming - at least what I thought I should be doing - on the host (which isn't an RT system) I write the network shared variables to single process variables in a while loop.  Then I only use the single process shared variables in my host progamming.  However, it appears that these single process variables only will pass 32 elements in the array.  Since I am on the host, I didn't set up the single process variables to be RT FIFO's.  Why is the single process variables limiting me to only 32 elements?

 

As a side note, I reread the "Using the LabVIEW Shared Variable" Tutorial and nothing stands out to me.  But in regards to the 'unlimited' size of the array I would think that would be limited by the 8kbyte buffer size in the Logos XT layer.

0 Kudos
Message 4 of 5
(3,797 Views)

Certain shared variable types (e.g. variant) require you to set the buffer size in bytes (not elements).  Double check "Network" item in your Shared Variable Properties dialog per attached screen shot.


Certified LabVIEW Architect
TestScript: Free Python/LabVIEW Connector

One global to rule them all,
One double-click to find them,
One interface to bring them all
and in the panel bind them.
Message 5 of 5
(3,792 Views)