Test and Measurement Forum

Arbitrary Waveform Time Duration

Post your LabVIEW discussions here

Arbitrary Waveform Time Duration

Postby Oleksiy79 » Mon Mar 07, 2016 3:25 pm

PicoScope5000aExampleAWG.vi for PS5000A series gives a possibility to use arbitrary waveform from text file. I wonder, where the settings for the frequency or for timing are located if I use this option? I attach the front panel picture. Standard Waveform Settings don't define the frequency or duration of the cycle for arbitrary waveform from text file.
Front pannel.jpg
Posts: 0
Joined: Mon Mar 07, 2016 3:17 pm

Re: Arbitrary Waveform Time Duration

Postby AndrewA » Wed Mar 09, 2016 11:45 am


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) of
https://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-


(114.9 KiB) Downloaded 35 times

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.

(11.38 KiB) Downloaded 43 times
Regards Andrew
Technical Specialist
Zen Master
Zen Master
Posts: 178
Joined: Tue Oct 21, 2014 3:07 pm

Return to LabVIEW

Who is online

Users browsing this forum: No registered users and 1 guest