I have tough problems finding the right approach for my problem.

It is difficult to interpret the sample files myself.

Unfortunately there are no step-by-step instructions to use the API.

I have a frequency of 1kHz.

The amplitude is variable.

I already read that the sampling rate should be five times higher than the frequency of the signal.

That would mean I need a sampling rate of 5kS/s.

There is the problem with the function "

*ps2000_get_timebase*".

The parameter "

*timebase*" is described as follows:

*"timebase: a code between 0 and the maximum timebase*

(depending on the oscilloscope). Timebase 0 is the fastest timebase. Each successive timebase has twice the sampling interval of the

previous one."

(depending on the oscilloscope). Timebase 0 is the fastest timebase. Each successive timebase has twice the sampling interval of the

previous one."

and it says "

*call this function with increasing values of timebase, starting from 0, until you find a timebase with a sampling interval and sample count".*

close enough to your requirements."

close enough to your requirements.

Is there no clue or calculation to determine the correct value in advance?

The parameter "

*no_of_samples*" is described as follows: "

*the number of samples that you require. The*

function uses this value to calculate the most suitable time unit to

use."

function uses this value to calculate the most suitable time unit to

use.

How do I know how many samples I will need?

What are the main parameters I need to think about in advance?

Thank you very much for your help.