ps4000SetTriggerDelay

Post your .Net discussions here
Post Reply
Stevo
Newbie
Posts: 0
Joined: Mon Mar 26, 2012 6:12 pm

ps4000SetTriggerDelay

Post by Stevo »

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?

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

Re: ps4000SetTriggerDelay

Post by Martyn »

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 Support Manager

Stevo
Newbie
Posts: 0
Joined: Mon Mar 26, 2012 6:12 pm

Re: ps4000SetTriggerDelay

Post by Stevo »

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!

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

Re: ps4000SetTriggerDelay

Post by Martyn »

It is in the manual that comes with the latest sdk which you can download from http://www.picotech.com/software.html
Martyn
Technical Support Manager

Post Reply