Test and Measurement Forum

ps4000SetTriggerDelay

Post your .Net discussions here

ps4000SetTriggerDelay

Postby Stevo » Wed Jun 13, 2012 4:02 pm

Hi there,

The definition for delay as given in the ps4000pg.en manual is as follows:

delay - the time between the trigger occuring and the first sample, in multiples of eight sample periods. For example, if delay = 100, then the scope would wait 800sample periods before sampling. At timebase of 80MS/s (12.5ns) per sample (timebase =0), the total delay would be 800x12.5ns = 10us.

I have a textbox allowing the user to enter the time delay they would like to have. Based on the information above, I devised a formula to calculate the value of the "delay" parameter as follows:

delay_value * 8 * currentTimebase = user_entered_delay_value.. for which I solve for delay_value.

However, when I actually used the delay_value, I got 1/8th the time delay instead. As a solution, I removed the factor of 8. Was I not suppose to include the "8" in the first place?
Stevo
Newbie
 
Posts: 0
Joined: Mon Mar 26, 2012 6:12 pm

Re: ps4000SetTriggerDelay

Postby Martyn » Thu Jun 14, 2012 8:38 am

This is a slightly modified version of the delay
Code: Select all
delay, the time between the trigger occurring and the first sample,
in sample periods. For example, if delay=100 then the scope would
wait 100 sample periods before sampling. Example: with the
PicoScope 4224, at a timebase of 80 MS/s, or 12.5 ns per sample
(timebase=0) the total delay would then be 100 x 12.5 ns =
1.25 μs.

so yes you are correct and do not need the 8
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2280
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: ps4000SetTriggerDelay

Postby Stevo » Thu Jun 14, 2012 5:51 pm

Thanks Martyn for the reply. This puts my mind to rest.

May I ask if this new definition of delay was reflected a new programmer's manual somewhere or has it not been released at the moment?

Thanks once again!
Stevo
Newbie
 
Posts: 0
Joined: Mon Mar 26, 2012 6:12 pm

Re: ps4000SetTriggerDelay

Postby Martyn » Fri Jun 15, 2012 6:45 am

It is in the manual that comes with the latest sdk which you can download from http://www.picotech.com/software.html
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2280
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots


Return to .Net Languages (C#, VB.Net, .)

Who is online

Users browsing this forum: No registered users and 0 guests