I want to run my Picoscope 5444B in rapid block mode, through Matlab SDK, so I am trying to set properly the PS5000A_ID_Block_Example.m script that is given. The problem is that I cannot find anywhere the values that are eligible for the various functions inside the script and things are getting really frustrating. For example:
%% SET CHANNELS
% Default driver settings used - use ps5000aSetChannel to turn channels on
% or off and set voltage ranges, coupling, as well as analogue offset.
%% GET TIMEBASE
% Use ps5000aGetTimebase or ps5000aGetTimebase2 to query the driver as to
% suitability of using a particular timebase index then set the 'timebase'
% property if required.
% timebase : 4 (16ns at 12-bit resolution)
% segment index : 0
[status, timeIntNs, maxSamples] = invoke(ps5000aDeviceObj, 'ps5000aGetTimebase', 4, 0);
What is the relation between 4 and the 16ns? What does 4 stand for?
Is there a guide explaining the Matlab functions? The most relevant guide I could find was https://www.picotech.com/download/manua ... rGuide.pdf
but it didn't include any explanations about the Matlab functions and their parameters.
Thank you in advance for your help!
Kind regards,
anm
p.s:
The instrhelp command (e.g. "instrhelp(ps5000aDeviceObj, 'ps5000aSetChannel');") returns me an error saying "Undefined function or variable 'ps5000aDeviceObj'.".
as you said would be the change.
The basic channel enumeration values are A=0, B=1, C=2, D=3 for any instance you need to set a channel,
For setting a timebase you pass an integer value that corresponds to a sampling interval specified in the device driver, the corresponding sampling timebases to the passed integer can be found in the programmer's guide on our website under Timebases. https://www.picotech.com/download/manua ... -guide.pdf