Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

function generator is resetting

Iam trying to run the getting started vi of ag33120A function generator,which I downloaded from ni.when iam setting required settings on the generator and running, the generator is immediately going to zero without allowing me to operate it anymore.I need to switch it off and ON again to make any changes.Iam not understanding why it is resetting everytime.Kindly tell me the reason for this.I entered the resource name correctly which is shown on the front panel
0 Kudos
Message 1 of 10
(4,567 Views)
Do you see the little subVI in the Getting Started example called Initialize with Options? In my version of the driver it's there and there is a True constant wired to the Reset Device input. That's why the instrument is resetting every time. If you don't want to reset it, change the constant or just call a different subVI in the driver. A Getting Started VI is just a high level example showing how you might want to call the various functions in the driver. It's not really intended to be repeatedly called by itself.
0 Kudos
Message 2 of 10
(4,567 Views)
I tried to change the constant as you mentioned in the initialise subVI,but it is resetting still.I tried in different ways but it is behaving in the same manner.Iam not understanding the problem.can you tell me what subvi i have to insert instead of initialise subvi.I would like to request you to send me the changed VI if possible as Iam not able to get through this.
0 Kudos
Message 3 of 10
(4,567 Views)
A modified Getting Started is shown in the attached picture. As far as a different VI, use whatever function you need. It might be ag33xxx - Config Waveform for example. This will allow you to change shape, freq, ampliture, etc. There are a lot of functions in the driver. Use the one that is most appropriate to your need. As I stated before, the Getting Started VI is an example. Use it as is or modify it, or pick out the specific instrument functions you need and just use those.
0 Kudos
Message 4 of 10
(4,567 Views)
I modified as you mentioned.But still it is resetting to zero as soon as Iam running the VI.Iam sending the VI that iam using to sweep the frequencies.when iam giving the offset value other than zero,then it is not resetting for sometime,but it resets after sometime.Is there anything to do without setting the value of the offset value.what role does it plays.Kindly make any changes if needed in the vi.I know the instrument is communicating with the PC.But i doubt if i need to give any specific commands for sweeping.Is that the reason for resetting problem?
0 Kudos
Message 5 of 10
(4,567 Views)
Since I don't have the instruments, I can't really run the VI as you intend. What I did was set the arb and dmm subVIs to Show Front Panel When Called, Close Afterwards if Originally Closed, and Suspend When Called. By doing that, I was able to look at the freq values being passed to the arb. With a Starting Freq of 1000, ending freq of 2000, and Steps per Decade of 10, I never saw a value of 0 being passed to the arb. I would suggest you do the same to see when a freq of 0 is being sent.

What offset are you talking about? You don't have a control for offset. The offset of the arb is the DC offset of the signal.
0 Kudos
Message 6 of 10
(4,567 Views)
Thank You ofr the valuable suggestion that you gave me and the VI is working fine now.Iam able to make the function generator sweep automatically.I have given the input voltage of 1vpp for the low pass filter circuit and iam maintaining gain of 10 when testing the circuit manually.But iam not getting that gain when iam running this vi.The multimeter is giving very low outputs.Iam sending the image of the graph and here comes the problem.Iam not able to understand what the Y-axis of XY-GRAPH is indicating.Why is it showing two Zero units on y-axis and is the VI scaling the y-axis anywhere?.Iam giving 1 vpp input and not understnding what its it is scaled to and not able to figure out the two zero levels.iam sen
ding the VI and could you please tell me how the y-axis is scaled.the cutoff frequency for this circuit is 338hz and it is coming correct,but the iam not able to figure the scaling
Download All
0 Kudos
Message 7 of 10
(4,567 Views)
"Thank You ofr the valuable suggestion that you gave me and the VI is working fine now.Iam able to make the function generator sweep automatically.I have given the input voltage of 1vpp for the low pass filter circuit and iam maintaining gain of 10 when testing the circuit manually.But iam not getting that gain when iam running this vi.The multimeter is giving very low outputs.Iam sending the image of the graph and here comes the problem.Iam not able to understand what the Y-axis of XY-GRAPH is indicating.Why is it showing two Zero units on y-axis and is the VI scaling the y-axis anywhere?.Iam giving 1 vpp input and not understnding what its it is scaled to and not able to figure out the two zero leve
ls.iam sending the VI and could you please tell me how the y-axis is scaled.the cutoff frequency for this circuit is 338hz and it is coming correct,but the iam not able to figure the scaling
Download All
0 Kudos
Message 8 of 10
(4,567 Views)
As far as the Y axis, you've set the formatting to be only 1 digit of precission so if you've got a reading of 0.02 and 0.03, they will show up as two differenct points on the chart but with the formatting option, only 0.0 will be displayed. Changing the formatting will fix this. I don't know why the meter is reading low. Have you tried single stepping through the program to see whether you need some delays? If you set a brakpoint and stop at the DMM read, do you see a higher reading after a while or a different reading if you manually trigger the dmm? You also say that you are giving a 1 vpp input. Is that what the func gen is being set to output? You didn't inlcude appli.vi so I can't confirm
that.
0 Kudos
Message 9 of 10
(4,567 Views)
iam sending you the appli.vi.one more thing i need to mention is that iam losing the control over the instruments once i start running the vi.so iam not ab;le to trigger manually as you asked me to do.I feel iam getting the shape of the waveform in the graph but i don't understand about the low values in the instrument.Could you check with the vi once ?.The multimeter is displaying the values in decreasing order with the increased frequency.
0 Kudos
Message 10 of 10
(4,567 Views)