02-17-2009 11:49 AM
02-17-2009 09:44 PM
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
02-18-2009 05:58 AM
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
02-18-2009 08:45 AM
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.
02-18-2009 09:08 AM
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.