Test and Measurement Forum

PS3425 data resolution problem.

Post your C and C++ discussions here

PS3425 data resolution problem.

Postby skyerfree » Mon Sep 17, 2012 10:28 am

Hi,

I've used PS 3425 to acquire data from some inputs. I can get a good data when I use picoscope 6 see figure
picoscope 6.jpg
Data from Picoscope


However, with the same input, when I use the program with block mode to acquire the data, I can only get the data like this
matlab_data.jpg
data from program


Is there any way to get the good data in the code.

THanks.
skyerfree
Newbie
 
Posts: 0
Joined: Tue Mar 13, 2012 1:27 am

Re: PS3425 data resolution problem.

Postby Martyn » Mon Sep 17, 2012 12:11 pm

In PicoScope6 if you right click on the display area and then view properties you will see the sample interval, sample rate and number of samples that are being used on the scope. We would need to see the code to see if you are setting up the scope with the same values.
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2287
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: PS3425 data resolution problem.

Postby skyerfree » Tue Sep 18, 2012 1:31 am

Hi Martyn,

Thanks for your reply.

After view the properties, the picoscope using sample interval 100ns, sample rate 10MS/s, and no of samples 2006.

I am using MATLAB with the following code to set the picoscope:

timebase is initially set as 0.

while ~calllib('PS3000','ps3000_get_timebase',data.unithandle3000,data.timebase,N,timeinterval,timeunit,1,maxsample)
data.timebase=data.timebase+1;
end
ps3000runblock=calllib('PS3000', 'ps3000_run_block',data.unithandle3000,N,data.timebase,1,1);

However, with this code I can get only 200ns and 5MS/s.
How to increase sample rate and decrease sample interval?

Thanks.
skyerfree
Newbie
 
Posts: 0
Joined: Tue Mar 13, 2012 1:27 am

Re: PS3425 data resolution problem.

Postby Martyn » Tue Sep 18, 2012 6:47 am

Try using the ps3000_set_channel command to ensure that all channels are turned off, then enable one and you should get the faster settings.
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2287
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots


Return to C and C++

Who is online

Users browsing this forum: No registered users and 1 guest