Reading a 3000 series device's timebase setting

Post discussions on applications you are writing
Post Reply
spflanze
User
User
Posts: 4
Joined: Wed Jul 11, 2018 11:36 pm

Reading a 3000 series device's timebase setting

Post by spflanze » Sat Oct 06, 2018 5:01 am

Is there a way to read from a 3000 series device the timebase it is set to?

I thought at first it was going to be ps3000aGetTimebase(). But this is not what it does. It requires a time base value input for what it does do.

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

Re: Reading a 3000 series device's timebase setting

Post by Martyn » Mon Oct 08, 2018 8:04 am

The timebase in use will be the one you have used in ps3000aRunBlock , so you are in control of that within your own application so should know what this is.

The ps3000aGetTimebase function is used to verify that the timebase you would like to use, is Ok for the number of samples and active channels you have selected
To use ps3000aGetTimebase or ps3000aGetTimebase2, first estimate the timebase
number that you require using the information in the timebase guide. Next, call one of
these functions with the timebase that you have just chosen and verify that the
timeIntervalNanoseconds argument that the function returns is the value that you
require. You may need to iterate this process until you obtain the time interval that
you need.
Martyn
Technical Support Manager

Post Reply