Quantcast
Channel: .NET Double Queue ????
Viewing all articles
Browse latest Browse all 3

.NET Double Queue ????

$
0
0
Hey all,
I am doing a high-speed acquisition system w/ some multithreaded callbacks.
I need to push data of type Double[,] from a NIDaq card onto a queue with one thread, and write it out to disk with another.  I was using a .net Queue for storing this data from the card with something like this.

void callback() {
    for ( int i = 0; i < chanCounts[0]; ++i ) {
        for ( int j = 0; j < rates[0]; ++j ) {
            rawQ[0,i]->Enqueue(scanData[i,j].ToString());
        }
    }
    callback();
}

Once I started to bump up my sample rate, though, my program started to crawl. 
Well, I narrowed it down to converting the scanData from a Double to an actual 'Object', which is what ToString() essentially does.

Is there any .NET type queue for types other than 'Object'??  I just really want a Double type Queue.

Am I going to have to revert to SLT ??

Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images