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: 132
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

Post Reply