LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can agilent function generator change the voltage amplitude while the signal is output

Solved!
Go to solution

Hi

 

I'm a new to the Labview.

I need to supply a series of voltages with step increases to my device and repeated it again and again.

   For example, (5V 0V 10V 0V 15V 0V)*5 times

In the past, I turned the bottom on the panel of Agilent 33220A function generator by myself.

It is stupid,so I am trying to use the Labview to do the same thing.

I download the Vi of Agilent 33220A function generator and write a for loop to do that. It can work.

 But I found a problem. At each voltage amplitude change, Agilent 33220A function generator will stop output and then output the new value.

 Because this short time of no voltage output, the dynamic behavior of my device will be destroyed.

 How can I do??

0 Kudos
Message 1 of 17
(5,986 Views)

So when you change the level setting through the GPIB interface, the output goes to zero for some time before resuming at the new level? Have you verified this with a scope? Also, how do you have the function generator set?

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 17
(5,974 Views)

What VI did you download, and from where, and what does your code look like? Maybe the VI is turning off the output before it sets the voltage. Did you look in the VI?

0 Kudos
Message 3 of 17
(5,972 Views)

The file I downloaded is "Agilent 33XXX Series Generates Standard Waveform ". please see the attached file.

 I am sure that the outputturn off before resuming at the new level because the dynamic behavior of my device and the light light on the panel of function generator trun off.

 

  I can't find where I can to adjust the seting of the function generator in the VI to avoid turn off the output before it sets the new voltage value.

 

 

0 Kudos
Message 4 of 17
(5,960 Views)
Solution
Accepted by Gary_taiwan

You have made a classic mistake. You've placed the Initialize and Close inside the loop. The Initialize will, by default, perform a device reset, which turns off the output. Initialize outside a loop, do your stuff inside, and then close outside the loop.

 

In terms of your code: I would strongly recommend looking at the Ramp Pattern function. It appears that you want to increase voltage settings, resetting to zero in between. This can be easily done by creating your ramp of the increasing voltages, and then creating another array of zeros of the same size, and then interleaving the two arrays. This will give you a full array of voltage values, without needing two loops, and determining which step you're on, etc., etc. For example, the following code will give you the 5, 0, 10, 0, 15, 0 sequence quite cleanly:

 

 

 

Also, never perform an equality comparison on floats. Otherwise, you owe me another nickel in my retirement fund.

0 Kudos
Message 5 of 17
(5,955 Views)

Dear smercurip_fc

 

Thanking for your useful reply.

 

Your answer just is I hope to write. But I just use the Labvew in a few days.

 That VI is my first Vi and I finished in one day.

 

0 Kudos
Message 6 of 17
(5,948 Views)

Dear smercurip_fc

 

  Ask one more question.

  How can I add the time controller to control the time of each voltage interval and How can I input array value seperately to the function generater??

0 Kudos
Message 7 of 17
(5,942 Views)

You can use the Time Delay Express VI to create a delay in your sequence. It has error I/O so you can wire it inline.

 

As for the second question, I'm not sure I understand, but I think you're asking about for-loop autoindexing. Please read the LabVIEW Help on for-loop autoindexing.

0 Kudos
Message 8 of 17
(5,934 Views)

 Dear

0 Kudos
Message 9 of 17
(5,916 Views)
Please take the LabVIEW tutorial before doing any more coding. What you have done makes no sense. You obviously did not read the help about for loops and auto indexing. The for loop goes around the set amplitude function and you wire the array through the loop and to the amplitude input.
0 Kudos
Message 10 of 17
(5,908 Views)