Test and Measurement Forum

convert timebase/div to timebase for pico3000

Post general discussions on using our drivers to write your own software here

convert timebase/div to timebase for pico3000

Postby Guest » Fri May 09, 2008 12:52 pm

Hi all,

I want to convert timebases like 10ms/div, 100ms/div and so on, to the timebase values as the pico3000dll requieres it. Unfortunally the dll uses mulitples of an sample intervall (in my case it's 10ns).
How can I do it? Had anyone of you done this before, and can help me a little bit?



Postby markspencer » Tue May 13, 2008 1:33 pm

To calculate the sample interval that is required you need to take the time/div and multiply it by the number of divisions.

eg. 10ms/div with 10 divisions gives 100ms

The next stage is to determine the number of samples that you want to have across the whole of the time.

eg. 4000 samples

Divide the time by the number of samples

100ms / 4000 = 25microseconds

The next stage is to use ps3000_get_timebase, one of the parameters tells you how long a capture would take at the timebase you require for the number of samples you have stated. You will need to iterate in a loop starting at timebase 0 and incrementing the timebase value until the time is equal or greater than you need.

Mark Spencer
User avatar
Site Admin
Site Admin
Posts: 598
Joined: Wed May 07, 2003 9:45 am

Return to General Software Discussions

Who is online

Users browsing this forum: No registered users and 0 guests