Stopping AWG from within python

Post general discussions on using our drivers to write your own software here
Post Reply
Larry_Brent
Newbie
Posts: 0
Joined: Sat Nov 18, 2023 8:34 am

Stopping AWG from within python

Post by Larry_Brent »

Hello world!

I am using the ps2000aSetSigGenBuiltIn() to start the AWG on a fixed frequency.

Is there a function to stop the AWG eventually? I can't find it in the programmers guide.

For now I am left with a signal forever :-)

Thanks for any hint.

Regards,
Andy

NeilH
PICO STAFF
PICO STAFF
Posts: 271
Joined: Tue Jul 18, 2017 8:28 am

Re: Stopping AWG from within python

Post by NeilH »

Hi

To stop the scopes signal generator you can either call the Stop function, though this will also stop any capture being run, or you can call the SetSigGen function again with a 0 V amplitude to effectively stop it.

The shots variable could also be used to have the signal generator automatically stop after a certain time, though you would need to combine it with some kind of trigger for the signal generator otherwise it will just continuously output the signal still.

Yours,
Neil
Neil
Technical Support Engineer

Post Reply