How to get started? [2204A+API]

Post general discussions on using our drivers to write your own software here
Post Reply
crimsonghost
Newbie
Posts: 0
Joined: Fri Sep 27, 2019 9:38 am

How to get started? [2204A+API]

Post by crimsonghost » Tue Oct 01, 2019 12:07 pm

Hi,

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."


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.
"

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.
"

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.

Martyn
Site Admin
Site Admin
Posts: 3711
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: How to get started? [2204A+API]

Post by Martyn » Mon Oct 14, 2019 8:07 am

Are you using the example code from our GitHub Pages
Martyn
Technical Support Manager

Post Reply