AWG parameters

Post your LabVIEW discussions here
Post Reply
mario.tavanti
Newbie
Posts: 0
Joined: Mon Feb 13, 2012 8:21 pm

AWG parameters

Post by mario.tavanti »

I have a problem about parameters passed to the function ps2000_set_sig_gen_arbitrary of PS2000.dll;i don't understand my errors in the project attached where I try to generate a sinusoidal signal(I know that this can be done by the buit-in generator but I want to learn how to use the AWG).Can someone help me?
Attachments
es.vi
(58.83 KiB) Downloaded 618 times

Hitesh

Re: AWG parameters

Post by Hitesh »

Hi Mario,

I've put together an example to show how to call the ps2000_set_sig_gen_arbitrary function - one of the things that I noticed about your file was that you are calling the function inside a while loop which isn't recommended.

I've also had to change the 20e-9 term in the formula to 10e-9 in order to set the frequency correctly. Please note that in this version the sweep functionality does not work as it will require a start and stop delta phase that are different.

I created some arbitrary waveforms using PicoScope and ran them through the example sending the AWG wave to another PicoScope device. One AWG file is attached as an example.
sine_wave_1V.csv
Example Sine wave AWG file.
(50 KiB) Downloaded 528 times
PS2000_AWG.vi
LabVIEW file
(15.64 KiB) Downloaded 639 times
Hope this helps.

Post Reply