Using A-api and negative trigger delay

Post general discussions on using our drivers to write your own software here
Post Reply
klaasdc
Newbie
Posts: 0
Joined: Wed Jan 03, 2018 12:51 pm

Using A-api and negative trigger delay

Post by klaasdc »

Hello,

I'm using a PS 2206 from C/Python to generate some waveforms and capture them with a simple trigger. This works fine but the trigger is always a bit 'late'. I would prefer to have some samples from before the trigger.

In the Programming manual (non-A), the function ps2000_set_trigger has a parameter int16_t delay that can be negative, to capture also the samples before the trigger fired.

In the A-api, there seems to be no equivalent? There is a function ps2000aSetTriggerDelay, but it only takes unsigned long values.

How can i get some pre-trigger values using the A-api?

Thanks,

Hitesh

Re: Using A-api and negative trigger delay

Post by Hitesh »

Hi klaasdc,

In the A API, you can specify the number of pre-trigger and post-trigger samples in the calls to ps2000aRunBlock() and ps2000aRunStreaming().

I hope this helps,

klaasdc
Newbie
Posts: 0
Joined: Wed Jan 03, 2018 12:51 pm

Re: Using A-api and negative trigger delay

Post by klaasdc »

That was exactly what I was looking for.
Thank you!

Post Reply