convert timebase/div to timebase for pico3000

 
Post new topic   Reply to topic    Pico Technology Forum Index -> General Software Discussions
Author Message
Guest






PostPosted: Fri May 09, 2008 12:52 pm    Post subject: convert timebase/div to timebase for pico3000 Reply with quote

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?

Regards,

mrniemand
Back to top
markspencer
Site Admin
Site Admin


Joined: 07 May 2003
Posts: 610

PostPosted: Tue May 13, 2008 1:33 pm    Post subject: Reply with quote

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.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Pico Technology Forum Index -> General Software Discussions
All times are GMT
Page 1 of 1

 


Pico Technology topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group