Arbitrary Waveform Time Duration

Post your LabVIEW discussions here
Post Reply
Oleksiy79
Newbie
Posts: 0
Joined: Mon Mar 07, 2016 3:17 pm

Arbitrary Waveform Time Duration

Post by Oleksiy79 »

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.
Attachments
Front pannel.jpg

AndrewA
PICO STAFF
PICO STAFF
Posts: 400
Joined: Tue Oct 21, 2014 3:07 pm

Re: Arbitrary Waveform Time Duration

Post by AndrewA »

Hi,

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-
PicoScope5000aExampleAWG
PicoScope5000aExampleAWG
See new Github links in the post 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.
5000a_AWG.txt
5000a_AWG_example
(11.38 KiB) Downloaded 567 times
Regards Andrew
Technical Specialist

AndrewA
PICO STAFF
PICO STAFF
Posts: 400
Joined: Tue Oct 21, 2014 3:07 pm

Re: Arbitrary Waveform Time Duration

Post by AndrewA »

There is now a updated example like the one pictured above, on our github page-
https://github.com/picotech/picosdk-ni- ... mpleAWG.vi
https://github.com/picotech/picosdk-ni- ... mpleAWG.vi

You will also need the PicoScope5000a.llb in same folder and the shared llb-
https://github.com/picotech/picosdk-ni- ... oScope.llb
Regards Andrew
Technical Specialist

Post Reply