Triggering a PicoScope Signal Generator using the API

Post general discussions on using our drivers to write your own software here
Post Reply
Hitesh
Site Admin
Site Admin
Posts: 2845
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Triggering a PicoScope Signal Generator using the API

Post by Hitesh » Tue Apr 07, 2015 2:50 pm

Hi,

We have produced a document that provides an outline of how to set parameters in order to the trigger the signal generator output on a PicoScope where available:

https://www.picotech.com/download/manua ... ctions.pdf

Please post any questions in this thread.

Thanks,
Hitesh

Technical Support Engineer

mblack
Newbie
Posts: 0
Joined: Fri Apr 06, 2018 7:05 pm

Re: Triggering a PicoScope Signal Generator using the API

Post by mblack » Fri Apr 06, 2018 7:16 pm

Hello,

I am using the ps2000a SDK with a model 2408B. I have the output of the AWG feeding into the input of channel D, and have set up a trigger with a threshold of +1V on channel D. Using an independent function generator and oscilloscope, I have verified that the 2408B is both producing the waveform I expect (without an AWG trigger), and receiving a known waveform.

My question is, where does the call to SigGenSoftwareControl need to be? Right now I have my code set up to call RunBlock, IsReady, SigGenSoftwareControl, SetDataBuffer, GetValues, SetDataBuffer (clear) in that order, but my waveform (a repeating pulse) is not being transmitted. I am calling SigGenSoftwareControl(handle,1), with the SetSigGenArbitrary taking in a trigger type of Rising (0), and a trigger source of Software Trigger (4). I was hoping to understand where my error is.

The behavior I am looking for is the following: 2408B initializes on system startup, then the AWG is triggered ONCE off a software flag, and channel D is triggered upon the AWG transmitted waveform crossing a threshold of +1V.

Thanks!

Hitesh
Site Admin
Site Admin
Posts: 2845
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Triggering a PicoScope Signal Generator using the API

Post by Hitesh » Tue Apr 10, 2018 9:39 am

Hi mblack,

The SigGenSoftwareControl() function should be called after RunBlock() is called and before you begin to check if the device has data available (i.e. if it is ready).

Are you using C# or another programming language?

Regards,
Hitesh

Technical Support Engineer

mblack
Newbie
Posts: 0
Joined: Fri Apr 06, 2018 7:05 pm

Re: Triggering a PicoScope Signal Generator using the API

Post by mblack » Tue Apr 10, 2018 6:51 pm

I am using Python. Thank you, that fixed the issue.

Hitesh
Site Admin
Site Admin
Posts: 2845
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Triggering a PicoScope Signal Generator using the API

Post by Hitesh » Wed Apr 11, 2018 8:53 am

Glad to hear that fixed the issue :)

Regards,
Hitesh

Technical Support Engineer

Post Reply