PS3425 data resolution problem.

Post your C and C++ discussions here
Post Reply
skyerfree
Newbie
Posts: 0
Joined: Tue Mar 13, 2012 1:27 am

PS3425 data resolution problem.

Post by skyerfree »

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
Data from Picoscope
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
data from program
data from program
Is there any way to get the good data in the code.

THanks.

Martyn
Site Admin
Site Admin
Posts: 3835
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: PS3425 data resolution problem.

Post by Martyn »

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 Support Manager

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

Re: PS3425 data resolution problem.

Post by skyerfree »

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.

Martyn
Site Admin
Site Admin
Posts: 3835
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: PS3425 data resolution problem.

Post by Martyn »

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 Support Manager

Post Reply