I am having problems setting the timebase on my picoscope 5244B. I have modified the PS5000A_IC_Generic_Driver_Block.m file to turn off channel B. I have set the timebase input in ps5000aGetTimebase to 3. and I get the expected 8 ns sampling interval returned. However, later in the program, when I actually call ps5000ArunBlock function, it returns a Timebase of 65. I have tried modifying the the runBlock function call from
[status]=invoke(ps5000aDeviceObj, 'ps5000arunBlock', 0)
[status]=invoke(ps5000aDeviceObj, 'ps5000arunBlock', 0, 1024, 3)
But this still returns a timebase of 65.
Can you give me another way of configuring the timebase other than entering it as part of the runBlock function call?
Also, can you explain why it is that if a preceding call is used to set one of the runBlock parameters (ex. 'numPreTriggerSamples') that when runBlock is called, it is impossible to over ride the preset condition? That seems pretty odd! But it does seem to explain what is going on here.