Test and Measurement Forum

Using A-api and negative trigger delay

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

Using A-api and negative trigger delay

Postby klaasdc » Wed Jan 03, 2018 1:02 pm

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,
klaasdc
Newbie
 
Posts: 0
Joined: Wed Jan 03, 2018 12:51 pm

Re: Using A-api and negative trigger delay

Postby Hitesh » Wed Jan 03, 2018 1:38 pm

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,
Hitesh

Technical Support Engineer
Hitesh
Site Admin
Site Admin
 
Posts: 2748
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Using A-api and negative trigger delay

Postby klaasdc » Wed Jan 03, 2018 1:51 pm

That was exactly what I was looking for.
Thank you!
klaasdc
Newbie
 
Posts: 0
Joined: Wed Jan 03, 2018 12:51 pm


Return to General Software Discussions

Who is online

Users browsing this forum: No registered users and 1 guest