AWG in LabVIEW PS2000.dll

Post your LabVIEW discussions here
Post Reply
Lorenz_A

AWG in LabVIEW PS2000.dll

Post by Lorenz_A »

Hi!

The AWG is working fine in PicoScope 6. I can use most of the .dll-calls of the PS2000.dll in my LabVIEW programs but I don't understand how to use the call for the AWG.


I tried to create all the parameters described in the manual - but I don't know what data-type is the sweeptype?
I created an array (size 1024) for the waveform buffer and I know how to hand it over to the dll-call.
I tried some parameters and the .dll-call returns 0 - but I cannot get the AWG to work.

A list of parameters for a wokring call would be very helpful.

Regards,

Alex

Chris
Site Admin
Site Admin
Posts: 169
Joined: Tue Aug 17, 2010 9:00 am
Location: St. Neots

Re: AWG in LabVIEW PS2000.dll

Post by Chris »

The return value is 0 for an error, non-zero for success.
(Not as stated in the manual).

The set_sig_gen_arb function code in the ps2000con.c is a good example to look at.

Note: The values in the arbitraryWaveform buffer need to be in the range 0 to 255, and the size of this buffer should be < 4094

atulkumar
Newbie
Posts: 0
Joined: Fri Dec 23, 2011 3:13 am

Re: AWG in LabVIEW PS2000.dll

Post by atulkumar »

Why 4094? Should not it be 4096?

-Atul

Post Reply