Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

need a VI to generate frequency sweep automatically

Iam using HP33120A function generator and Iam stuck in building a VI such that it sweeps the frequency auomatically (New frequency = previous frequency + (number of order of the point * increment value).so that the user need not have to increment the frequency manually..The user needs to give initial frequency,final frquency and frequency increments.Kindly somebody help me with this.
0 Kudos
Message 1 of 24
(8,849 Views)
Hello,

You will simply need to check the user manual of the instrument to see what command (if provided by the instrument) will allow you to change frequency. Then you can send this command (I presume you are connecting either via serial or GPIB) using VISA functions easily in LabVIEW.

Thank you,

JLS
Best,
JLS
Sixclear
0 Kudos
Message 2 of 24
(8,848 Views)
Here is your VI from your other post here modified to use the current 33120A driver. Download the driver from the location I said in the post and try it. The instrument is also capable of performing a sweep automatically. You should look in the manual to see how or if you can use another instrument to take measurements while it is sweeping.
Message 3 of 24
(8,849 Views)
Thank You for the sweepVI that you sent last time.I have downloaded the ag33120A driver ,but still it says that i need to have ag33xxx-config waveform.VI.Is it the same sub VI that comes along with the driver.If so, why am I getting this problem.Kindly le tme know how to add that particulat sub VI to the sweep VI that you sent me
0 Kudos
Message 4 of 24
(8,847 Views)
All it probably is it that you installed the driver in a different location. I tend not to install drivers locally so that it's easier to share code among multiple developers. That's my fault. When you open the example VI, it should ask to locate the missing VI. If you installed the driver in the default \instr.lib folder, browse there and select ag33xxx.llb and then select the VI. If you installed it in a different location, do the same thing with the llb in that folder.
0 Kudos
Message 5 of 24
(8,847 Views)
I downloaded the driver to the llb folder that you mentioned.But it still says that "cannot find ag33xxx-config waveform.vi". I cannot understand why it is saying like that.Because of this iam not able to open the sweep VI that you sent me.Is there any way like you can send the config wavefrom.vi or any possible solution for this
Thanking You.
0 Kudos
Message 6 of 24
(8,847 Views)
If you downloaded the llb and unzipped it, then the VI is on your system. Like I said, you should be able to browse to it. Search your hard drive for the folder for ag33xxx.llb. Just in case, I did a development distribution and created the attached llb with everything in it.
0 Kudos
Message 7 of 24
(8,848 Views)
I Thank You for helping me out in generating the auto sweep VI.I opened the VI which you sent and it is opening fine.When iam running it iam not encountering any problem with ag33xxx driver,but iam having some error with HP34401A driver .Iam getting the following error. error-1073807265 occurred at
VISA GPIB control REN in
HP34401A controlmode.vi-
>HP34401A initialise.vi-
>HP34401A gettingstarted.vi-
sweep[1].vi

i guess it is something with 34401A driver.Is it that iam using wrong vi like geting started instead of something.Kindly let me get rid of this problem.

Thanking You.
Regards,
chaitanya.
0 Kudos
Message 8 of 24
(8,847 Views)
If you don't know how, just by right clicking on an error code you can select Explain Error. The error code is no listener. Check to see if the address of the instrument matches the address in the VI.
0 Kudos
Message 9 of 24
(8,847 Views)
Hey. I am trying to use sweep.vi and I was having trouble with the ag33xxx config waveform. Then I found your post. Can I get the correct link to the 33120A driver? Thanks!
0 Kudos
Message 10 of 24
(8,726 Views)