Changing the Resolution of a 4444

Post your MATLAB discussions here
Post Reply
Cupidus83
Newbie
Posts: 0
Joined: Wed Sep 04, 2019 11:27 am

Changing the Resolution of a 4444

Post by Cupidus83 » Wed Sep 04, 2019 11:38 am

I tried the following line, it works for the ps5000a:
[status.setResolution, resolution] = invoke(ps4000aDeviceObj, 'ps4000aSetDeviceResolution', 1);

But i get the following error message:
Error using icdevice/invoke (line 56)
The function ps4000aSetDeviceResolution is not supported by this device object.

Error in PS4000A_ID_Block_Example (line 114)
[status.setResolution, resolution] = invoke(ps4000aDeviceObj, 'ps4000aSetDeviceResolution', 1);


I think there is some error in the instrument driver, is that possible?

Here is the enum list with the different available options:
ps4000aEnuminfo.enPS4000ADeviceResolution

ans =

struct with fields:

PS4000A_DR_8BIT: 0
PS4000A_DR_12BIT: 1
PS4000A_DR_14BIT: 2
PS4000A_DR_15BIT: 3
PS4000A_DR_16BIT: 4

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

Re: Changing the Resolution of a 4444

Post by NeilH » Wed Sep 04, 2019 1:39 pm

Hi

The ps4000aSetDeviceResolution isn't in the .mdd file currently so to call it you would need to use this format instead;

calllib('ps4000a','ps4000aSetDeviceResolution',ps4000aDeviceObj.unitHandle, ps4000aEnuminfo.enPS4000ADeviceResolution.PS4000A_DR_14BIT)

Neil
Neil
Technical Support Engineer

Hitesh
Advanced User
Advanced User
Posts: 2856
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Changing the Resolution of a 4444

Post by Hitesh » Thu Oct 24, 2019 9:50 am

Hi Cupidus83,

The MATLAB Instrument Driver has now been updated to support changing the resolution of the PicoScope 4444 (release 1.12.2.2 beta or later).

Please refer to the latest GitHub release for this Instrument Driver.

The PS4000A_ID_Block_Example.m script in the examples folder has been updated to show how to use the function - specify the resolution parameter in bits (12 or 14).

Hope this helps,
Hitesh

Software Dev. Engineer

Post Reply