Hi Stas,
You can convert your whole 2x25000 point array to a string, using 'flatten
to string' function, and put that in the queue and then retrieve from
queue using 'unflatten from string'.
What I would recommend thought is retrieve the data, from the sound card,
as five 2x5000 point segments and put it in the queue 5 times and then
retrieve from the queue 5 times. As long as you are not starting and
stopping the sound card in between each read you won't lose any data.
Also keep the data as integers while storing it in the queue and only
convert when needed. This will save time and memory in the queue.
Tim
Stas wrote:
> Hi, Tim,
>
> I tried the way you suggested, but it is not work in my case. Queue
> can operate with a string only an
d can put in a queue and take only
> one element a time. But I have an array of 2x25000 points every 2 sec
> and need to put it into buffer and then take all of them. May be it is
> possible by Write To File and Read From File? Currently I use
> immediate restart SI Initialise if the SI Read shows zero array. It
> helps in 90% of oferwriting cases, but still not in 100%
>
> Anyhow, thank you for reply!
> Stas