Test and Measurement Forum

maximum data rate using pico 3204

Post your C and C++ discussions here

maximum data rate using pico 3204

Postby boep777 » Thu Apr 03, 2014 4:36 pm

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/
boep777
Newbie
 
Posts: 0
Joined: Thu Apr 03, 2014 4:18 pm

Re: maximum data rate using pico 3204

Postby Hitesh » Fri Apr 04, 2014 10:05 am

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.
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2063
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: maximum data rate using pico 3204

Postby boep777 » Mon Apr 07, 2014 11:27 pm

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
boep777
Newbie
 
Posts: 0
Joined: Thu Apr 03, 2014 4:18 pm

Re: maximum data rate using pico 3204

Postby Hitesh » Tue Apr 08, 2014 8:26 am

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,
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2063
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: maximum data rate using pico 3204

Postby boep777 » Thu Apr 10, 2014 2:00 pm

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

Postby boep777 » Thu Apr 10, 2014 2:07 pm

On the other question: I am using invoke and tic-toc about 1MB of data transfer(200 samples in 1000 segments).
boep777
Newbie
 
Posts: 0
Joined: Thu Apr 03, 2014 4:18 pm

Re: maximum data rate using pico 3204

Postby Hitesh » Fri Apr 11, 2014 8:41 am

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,
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2063
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire


Return to C and C++

Who is online

Users browsing this forum: No registered users and 2 guests