Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Please i need your help in the following issue.

Solved!
Go to solution

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...

0 Kudos
Message 1 of 9
(4,442 Views)
Solution
Accepted by topic author elgazery

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?

Message 2 of 9
(4,436 Views)

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 correctionsuntitled.JPG

0 Kudos
Message 3 of 9
(4,423 Views)

by the way, my previous example is a modification to the following example.

http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=22C6FB2A2BB06E0EE0440003BA7CCD...

Thank you

 

0 Kudos
Message 4 of 9
(4,422 Views)
Put the loop around the frequency function. No need for a sequence structure either. Use the Delay function with it's error in/error out connections and place it inline. No need to close and initialize the instrument repeatedly either. And, since you have an agilent instrument, it makes no sense at all to be using functions for a tek instrument.
0 Kudos
Message 5 of 9
(4,411 Views)

i will try that, i have both function generator (agelent and teck)

Thanks

0 Kudos
Message 6 of 9
(4,400 Views)

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.

0 Kudos
Message 7 of 9
(4,387 Views)

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!

 

Message Edited by Dennis Knutson on 03-07-2010 12:18 PM
0 Kudos
Message 8 of 9
(4,381 Views)

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

0 Kudos
Message 9 of 9
(4,370 Views)