Samples and resolution rate problem PS5444D MAtlab

Post your MATLAB discussions here
Post Reply
den4952
Newbie
Posts: 1
Joined: Wed Oct 07, 2020 3:13 pm

Samples and resolution rate problem PS5444D MAtlab

Post by den4952 »

Hello everyone
I have 1 small problem with my PicoScope code in MatLab.
I Use PS 5444D series. If I use 3 channel mode form datasheet I can receive more than 125MS/s with 14-bit mode.
But if I use 3 channel and set 60MS/s and 12-bit rate (because I need to measure 30MHz). Matlab show this error:
Error using icgroup/invoke (line 95)
ps5000aRunStreaming: Status code: 43. Please refer to the PicoStatus.m file.

Error in PS5000A_ID_Streaming_Example_Working22 (line 313)
[status.runStreaming, actualSampleInterval, sampleIntervalTimeUnitsStr] = ...

I added attachment with my code. Sampling and bit rate can be changed in rows #163 [status.setResolution, resolution] = invoke(ps5000aDeviceObj, 'ps5000aSetDeviceResolution', 14);
#254 sampling_freq = 1e6;

If someone can give me suggestion how I can solve this problem I will be very happy
Attachments
5444D code.docx
(37.72 KiB) Downloaded 370 times

NeilH
PICO STAFF
PICO STAFF
Posts: 268
Joined: Tue Jul 18, 2017 8:28 am

Re: Samples and resolution rate problem PS5444D MAtlab

Post by NeilH »

Hi

The maximum streaming (continuous sampling) sampling rate for the 5444D at 14 bits is 62.5 MS/s with a USB 3 cable and port or 15 MS/s with a USB 2 cable and/or port when using the PicoSDK. This is then needed to be divided by the number of active channels on the scope to give the maximum sampling rate for the setup.

Neil
Neil
Technical Support Engineer

den4952
Newbie
Posts: 1
Joined: Wed Oct 07, 2020 3:13 pm

Re: Samples and resolution rate problem PS5444D MAtlab

Post by den4952 »

Ok, thank you for your answer. But even if I use SINGLE_Scope, only 1 channel I can reach maximum 40MS/s 8-bit. or 20MS/s with 12 or 14 bit Mode. And I can not understand what is happening, I am using USB3.0 and only one channel. If someone have code to do streaming measurements with maximum 62.5MS/s. Could you share it?
Attachments
5444D code1.docx
(57.49 KiB) Downloaded 368 times

NeilH
PICO STAFF
PICO STAFF
Posts: 268
Joined: Tue Jul 18, 2017 8:28 am

Re: Samples and resolution rate problem PS5444D MAtlab

Post by NeilH »

Hi

It looks like you're not setting a resolution for the scope, which is opened in 8 bit mode by default, in your code.

When you run the code, what is returned by runStreaming when you pass the 62.5 MS/s rate? Are you sure that all the channels are getting turned off if they're not needed?

Neil
Neil
Technical Support Engineer

Post Reply