Yes the AWG examples are not that user friendly when having to set the frequency and dwell time.
You need to use the formula on page 83 (11.50 ps5000aSetSigGenArbitrary) ofhttps://www.picotech.com/download/manua ... sGuide.pdf
So you had to calculate the Delta counts
needed for each frequency you wanted. (start, stop, increment)
A new function was recently added to do this for you- ps5000aSigGenFrequencyToPhase
Also when doing sweeps with the AWG you need to convert the 'Dwell time' you wanted to dwellCount
I have now added these features to the AWG example and added some logic.
I have simplified the front panel controls, screen-shot below-
A easy way to generate AWG files is to use PicoScope software AWG editor and export to cvs and than convert to text file.
I have attached a example AWG text file.