RolfK wrote:
> Jeremy Marquis wrote:
>
>> So I guess there is some Labview-set limit to the number of refnums in
>> memory, since the computer still has 97% free. I will try using
>> Release Queue.vi within the loop as well as at program termination and
>> report back.
>
>
> Yes do that definitely. I think LabVIEW has an internal limit of 2^16
> refnums of any particular type, something derived from observing the bit
> pattern of a refnum. Even if LabVIEW wouldn't have such an "artificial"
> limit, each refnum requires memory, several bytes (could be in the range
> of 16 to 32 bytes) in fact. So even if that refnum limit wouldn't exist,
> you would run out of memory sooner or later if you keep opening refnums
> without ever closing them.
Even better would be to open the Queue refnum before the loop and close
it afterwords. Speeds up VI execution somewhat too.
Rolf Kalbermatter
Rolf Kalbermatter
My Blog 
DEMO, Electronic and Mechanical Support department, room 36.LB00.390