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',

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