01-26-2012 11:02 AM
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..
01-26-2012 12:41 PM
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?
01-26-2012 06:40 PM
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
01-26-2012 06:52 PM
01-27-2012 01:56 PM
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:
Give this guy a try.
Lars L
NI R&D