Get raw ADC data ps5000

Post your MATLAB discussions here
Post Reply
steiemi
Newbie
Posts: 0
Joined: Wed Apr 18, 2018 6:34 am

Get raw ADC data ps5000

Post by steiemi » Wed Jan 30, 2019 9:34 am

Hi,
Is it possible to get the raw-bit-data of the ADC in the PicoScope with Matlab?
The function "getBlockData" only returns values in millivolts.

Should I use the function "ps5000aGetValues"? But there I only get the status, the number of samples and the overflow or did I misunderstand it?

[get_values_status, numSamples, overflow] = invoke(obj, ...
'ps5000aGetValues', startIndex, totalSamples, ratio, ratioMode, ...
segmentIndex, overflow);

I use Matlab2017b on 64bit windows7.

Thanks a lot!

Mirco

steiemi
Newbie
Posts: 0
Joined: Wed Apr 18, 2018 6:34 am

Re: Get raw ADC data ps5000

Post by steiemi » Tue Feb 05, 2019 7:45 am

UPDATE / ANSWER:

It is possible to get the raw-ADC Values with the command:

Code: Select all

 
 [status, numSamples, overflow] = calllib('ps5000a', 'ps5000aGetValues', ...
        get(obj, 'unitHandle'), startIndex, noOfSamples, downSampleRatio, ....
        downSampleRatioMode, segmentIndex, overflow);
        
so you have to work with the librarys directly.
You have to load the library at first, like:

Code: Select all

loadlibrary('ps5000a.dll', @ps5000aMFile);

Post Reply