Why use ps3000_get_timebase for block mode?

Post general discussions on using our drivers to write your own software here
Post Reply
pgaastra
Newbie
Posts: 1
Joined: Thu Nov 29, 2007 12:52 am

Why use ps3000_get_timebase for block mode?

Post by pgaastra »

Hi,
I'm puzzled by step 4 of Section 4.2.4.2 (page 11) of the 3000 series User Guide.

It says: Using ps3000_get_timebase() select timebases until the required ns per sample is located.

I thought I could just work out the settings and use the ps3000_run_block call.

Thanks

Robin
Advanced User
Advanced User
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Re: Why use ps3000_get_timebase for block mode?

Post by Robin »

Hi
I thought I could just work out the settings and use the ps3000_run_block call
Yes, that's correct. You don't have to call GetTimebase.

The GetTimebase function is there so you can get the timebase code from the desired sample interval. This avoids having to calculate the timebase code and also means that your code will work with other 3000 models that have different sampling rates.

Robin

Post Reply