I can't disable channels B, C and D with 5444D

Post your MATLAB discussions here
Post Reply
josep.montanya
Newbie
Posts: 0
Joined: Mon May 09, 2022 8:32 pm

I can't disable channels B, C and D with 5444D

Post by josep.montanya »

Hi,

I am using this code to connect to a PicoScope 5444D, disable all channels except A, and set the sampling period to 1ns. However when trying to set the timebase (last line in the code below) I get an error. I assume that is because channels B,C and D are not disabled. I would appreciate your help in resolving this, as I do need to sample at 1Gsps.

PS5000aConfig;
ps5000aDeviceObj = icdevice('picotech_ps5000a_generic', '');
connect(ps5000aDeviceObj);

[status.setChA] = invoke(ps5000aDeviceObj, 'ps5000aSetChannel', ps5000aEnuminfo.enPS5000AChannel.PS5000A_CHANNEL_A, 1, 1, 8, 0.0);
[status.setChB] = invoke(ps5000aDeviceObj, 'ps5000aSetChannel', ps5000aEnuminfo.enPS5000AChannel.PS5000A_CHANNEL_B, 0, 1, 8, 0.0);
[status.setChC] = invoke(ps5000aDeviceObj, 'ps5000aSetChannel', ps5000aEnuminfo.enPS5000AChannel.PS5000A_CHANNEL_C, 0, 1, 8, 0.0);
[status.setChD] = invoke(ps5000aDeviceObj, 'ps5000aSetChannel', ps5000aEnuminfo.enPS5000AChannel.PS5000A_CHANNEL_D, 0, 1, 8, 0.0);

[status.setResolution, resolution] = invoke(ps5000aDeviceObj, 'ps5000aSetDeviceResolution', 8);

timebaseIndex = 0; % Ts=1ns
[status.getTimebase2, timeIntervalNanoseconds, maxSamples] = invoke(ps5000aDeviceObj, 'ps5000aGetTimebase2', timebaseIndex, 0);

Post Reply