How to generate a signal by using the ps3000aSetSigGenBuiltI

Post your LabVIEW discussions here
Post Reply
lili
Newbie
Posts: 0
Joined: Tue Jan 07, 2014 10:08 pm

How to generate a signal by using the ps3000aSetSigGenBuiltI

Post by lili »

Hello..

I'm trying to generate a DC signal from the 3404A. But whenever I start to run the code, the labview will automatically shut off. Could you please help???
The following is the code. Also, where is the terminal to view the output signal??

Thanks alot!
Li
Attachments
SignalGen.vi
(14.16 KiB) Downloaded 618 times

Karunen
Advanced User
Advanced User
Posts: 194
Joined: Thu Nov 21, 2013 9:22 am

Re: How to generate a signal by using the ps3000aSetSigGenBu

Post by Karunen »

Hi Li,

I have fixed your vi, please download it and make sure the libraries attached correctly
SignalGen - working.vi
ps3000a siggen
(14.8 KiB) Downloaded 610 times
The corrections that I made was:

When taking data from the front panel make sure that the data type matches to the function data types

Corrected one data type in the function 'setsimpletrigger'

Please note that I set wavetype as 3 this means the DC voltage, if you selected it using your drop down it would be 0 which is a sine wave.

Also pktopk and offset are both in uV NOT mV.

To get a 1V dc signal set the offset to 1000000,
the startfreq to 1000
and stopfreq to 1000

and leave the others.

Karunen
Karunen

Technical Specialist
Pico Technology

lili
Newbie
Posts: 0
Joined: Tue Jan 07, 2014 10:08 pm

Re: How to generate a signal by using the ps3000aSetSigGenBu

Post by lili »

Hi, Karuren

Can you please attach some picture of it? I have labview 2012 installed and can't open the file you sent..... :(
Thanks alot..

Li

Karunen
Advanced User
Advanced User
Posts: 194
Joined: Thu Nov 21, 2013 9:22 am

Re: How to generate a signal by using the ps3000aSetSigGenBu

Post by Karunen »

Hi Li,

Sorry about that I have attached a 2010 version below please try that out.
SignalGen - working.vi
PS3000A Siggen labview 2010
(10.28 KiB) Downloaded 669 times
Karunen

Technical Specialist
Pico Technology

Post Reply