I have a pico 3424 scope and am having trouble with the timebase function. When I run get_timebase_2 I don't get expected values for the max samples. I get one of two results. If requested samples is less than the max I get value of -513 for max samples and a status of 1. If the requested samples is greater than the max then it returns whatever value was passed to max samples and the status is 0.
The only way to find the max samples is to iterate the requested samples until I get a status of 0.
I'm not sure if this is a problem but -513 looks like an error code so makes me worry. So far I have not seen the max number change except when changing the number of active channels. Is this always true?