From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
01-09-2009 03:14 AM
Hello,
I want to control an Agilent 33250A generator by using LabVIEW to obtain different waveforms with specific frequency, amplitude values. I use Agilent 33XXX Series.lvlib:Configure Standard Waveform.vi
My problem is that when I give a frequency value of 79 999 996 Hz ( 79. 999 996 MHz) for example, the program rounds up the value to 80 MHz. How can I give a frequency value like above, without rouding up or down ?
Many thanks in advance.
Solved! Go to Solution.
01-09-2009 10:18 AM
Hello Nwg,
The rounding is occuring on the instrument. I recommend that you consult the user manual and see what frequency values are possible. Is it possible to set the frequency that you would like by using the instrument's front panel? If so, it would be good to confirm that the instrument is actually set to that frequency and not just rounding internally. Please let us know what you find out.
Cheers,
NathanT
01-09-2009 10:35 AM
01-09-2009 11:21 AM
01-12-2009 04:22 AM
Thank you. I changed the string format, and now it works
01-12-2009 07:56 AM
Hello nwg,
I am glad that you got it to work. Can you please explain what exact value you were passing and how you changed the formatting? When I looked at that VI and probed the output of the format string, it did not seem to have any problems.
Thanks,
NathanT
01-12-2009 10:01 AM
Hello NathanT,
In 'Configure Standard Waveform.vi' I changed format string from %.;:FREQ%g to %.;:FREQ%f
Then when I enter 79 999 996 Hz for the frequency, generator front panel shows the values without rounding upto 80 MHz.
01-12-2009 12:22 PM
01-13-2009 09:47 AM
Hello Albert,
We will document the issue and investigate it in the other instrument drivers that support the 33250A and possibly a sample of our other instrument drivers. The winter here in Texas has been more mild, and will swing from below freezing to sunny and warm.
Cheers,
NathanT