maximum data rate using pico 3204

Post your C and C++ discussions here
Post Reply
boep777
Newbie
Posts: 0
Joined: Thu Apr 03, 2014 4:18 pm

maximum data rate using pico 3204

Post by boep777 »

Hi, I got pico 3204 and generally like the unit and its software interface. Without much struggle I received 10MSamples per sec of data transfer rate in rapid block mode. Now I want to double that to match half of USB2 specs at about 20 MB/s. What caught my attention is the data transfer format of the type short. Why it is 16bit and not 8bits, equal to what ADC has? Is there a faster interface to the board ?
Thanks. Boris /specman4epr.com/

Hitesh

Re: maximum data rate using pico 3204

Post by Hitesh »

Hi boep777,

Are you using a 3204 A or B variant?

The ADC counts are scaled to 16-bit values to ensure code consistency across our device ranges from 8 to 16-bit.

There isn't a faster interface to this device.

Hope this helps.

boep777
Newbie
Posts: 0
Joined: Thu Apr 03, 2014 4:18 pm

Re: maximum data rate using pico 3204

Post by boep777 »

Hi Hitesh, thank you for reply. The A variant.
The code I used to measure the transfer speed was written in C (BCB XE4).
Now I tried to write similar code in MATLAB and the transfer speed went down to 30 kB/s. Any experience with MATLAB transfer speeds ? Do you think it worth fighting or better to move the acquisition to mex ?
Boris

Hitesh

Re: maximum data rate using pico 3204

Post by Hitesh »

Hi Boris,

How are you calling the functions in MATLAB and how are you timing the data collection?

It should be quicker than that with MATLAB. Is it a 32-bit version of MATLAB?

Regards,

boep777
Newbie
Posts: 0
Joined: Thu Apr 03, 2014 4:18 pm

Re: maximum data rate using pico 3204

Post by boep777 »

HI Hitech,
MATLAB is 32-bit 2013b (64bit did not work).
The main difference is the absence of the Bulk data transfer function (ps3000aGetValuesBulk). I did not manage to make it working. Example is using ps3000aGetValues.
Boris

boep777
Newbie
Posts: 0
Joined: Thu Apr 03, 2014 4:18 pm

Re: maximum data rate using pico 3204

Post by boep777 »

On the other question: I am using invoke and tic-toc about 1MB of data transfer(200 samples in 1000 segments).

Hitesh

Re: maximum data rate using pico 3204

Post by Hitesh »

Hi boep777,

With the ps3000aGetValuesBulk function, please ensure that you have passed an array for the overflow parameter.

Please post your code here or send it to support@picotech.com and we can take a further look. Which version of the PS3000a.dll are you using?

It will take longer to retrieve data using the call to ps3000aGetValues for each segment.

Regards,

Post Reply