Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem to control AWG

Hi everybody..

 

i am writing this post cause i'm having some problem to control an AWG from labview; i just need to comand it to generate a linear sine sweep from 1 Hz to 20KHz in 15 seconds; i thing i make the .vi in the right way, but it doesn't works as well.. i post my .vi in 8.5 version.. hope someone could help me..

 

Thank you in advance!!

 

P.S: i realized the upper part, the lower part is an exemple from the NI exemple section just to see what signal my AWG is producing..

Nigeltorque
0 Kudos
Message 1 of 5
(3,737 Views)

Your example does not look anything like mine. Why are you doing anything with an arbitrary waveform when you want a sine? I don't see anything that enables the output. Strangest of all to me, why are you using the IVI driver instead of the LabVIEW one?

0 Kudos
Message 2 of 5
(3,729 Views)

I use the AWG because.. THEY say we have to use it for my project!!; i posted just a part of my project, at last i have to use the AWG to generate:

 

1) a linear sine sweep from 1 to 20000 HZ with low amplitude

2) a 15 Hz sine with amplitude wich varies from 0.05 to 1 Volt

3) an exponenxial sine sweep from 1 to 20000 Hz (AWG is able to generate just a linear and a logaritmic sweep)

 

so.. i was thinking about solve to easier case (the first), and then realized the second and the third part..

 

do you think the .vi i posted is wrong??

 

Thank you

Nigeltorque
0 Kudos
Message 3 of 5
(3,717 Views)
I didn't question your use of the AWG. I questioned your use of that driver for it that you downloaded. Download the LabVIEW Project style driver instead of the IVI one.
0 Kudos
Message 4 of 5
(3,713 Views)

Hey Nigeltorque,

The .LLB that you are using in your application is indeed the IVI Driver for this instrument. IVI drivers can be very useful if a customer is interested in having instrument interchangability, state caching, range checking among other standard IVI features (DevZone: Using IVI Drivers in LabVIEW). However, NI's IVI drivers are IVI-C drivers which means that their source code is actually standard ANSI C. You can still easily use these IVI-C drivers in LabVIEW as we provide an API with the installer that calls into the instrument DLL but if you are unfamiliar with C then it might not be easy to modify.

 

If you are more comfortable with LabVIEW then I would definitely recommend the LabVIEW Plug-and-Play (Project Style) driver that Dennis is alluding to. Here's the link to the driver for your instrument:

 

Agilent 33XXX Series Signal Generator

 

If you take a look at this driver, it appears that there is already a frequency sweep example included:

 

33XXX.jpg

 

Give this guy a try.

 

Lars L

NI R&D

0 Kudos
Message 5 of 5
(3,697 Views)