03-06-2010 08:10 PM
Please i need your help in the following issue.
i am trying to modify a function generator driver to do the following:
starting with initial value (e.g. 1MHz) for certain time (e.g 10 sec.) and turn the output off for another time (e.g 20 sec.) then start again but this time with increment frequency value (e.g 1 MHz+0.1x n MHz =1.1MHz for n=1,2, 3, ....n).
The function generator model is ag33xxxGPIB and the driver link is http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=E3B19B3E9066659CE034080020E748...
Solved! Go to Solution.
03-06-2010 10:19 PM
There's no modification required to the driver though there might be an example that you can modify. You use the set frequency function in a loop with a shift register. Initialize the shift register with your starting frequency and with each iteration of the loop, add the step value. Exit the loop when the stop frequency is reached. Try to write something and post back if you have problems. Attach what you have written.
This is pretty basic LabVIEW code. Have you done the online tutorials?
03-06-2010 11:58 PM
Thank you very much.
Actually i tried and i couldn't make it. i think there is some thing wrong because the output is not what i am looking for.
please, review the following example, and try to help me make the needed corrections
03-07-2010 12:04 AM
by the way, my previous example is a modification to the following example.
Thank you
03-07-2010 01:12 AM
03-07-2010 05:20 AM
i will try that, i have both function generator (agelent and teck)
Thanks
03-07-2010 12:57 PM
I am sorry it doesn't work as needed, i tried different way, i think i still need your help.
see what i did and please make do what you think it will works.
Again, i need the following
1) start 1 MHz for 10sec then stop working for 10 second (2) repeat the same step with 1MHz increase untill i reach 50MHz.
Attached you will find the examle i need to work with.
Thank you for your patient.
03-07-2010 01:17 PM - edited 03-07-2010 01:18 PM
You don't have any loop at all now so of course it does not work! You did not try something as silly as using the run continuous button did you? I can't save as 7.1 so use the image below and take the tutorials!
03-07-2010 02:07 PM
Thank you very much it was great except you forgot to wire the frequency function to the STDWFM subVI. After i did it works great, without this wire it repeat the same value without increment.
Thanks alot