Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

33250A arbitrary waveform selection

      Hello everybody,

 

  I am controlling 33250A Signal Generator (Agilent) through GPIB. I downloaded the latest version of the drivers from http://sine.ni.com/apps/utf8/niid_web_display.model_page?p_model_id=105

  I need to set the signal generator to be producing a user defined waveform (6 cycle sine burst sine wave with Hamming Window applied to it) as an output, increment its frequency with equal steps and set the burst mode on. The user defined waveform is in the memory of SG.

  I attached the block diagram of the VI that I am using and the VI itself.

  It sometimes works fine but sometimes (Create arbitrary waveform.VI and Configure arbitrary waveform.VI) gives error -1074000000.I could not figure out the cause of error.

  Also, sometimes there occurs a time conflict between above loop which is for incrementing the frequency and the below loop (for setting the burst mode on). The below loop should end right after the initial frequency is set (above loop is executed once).

    Could anybody help me with those issues?

 

     Thanks

 

Deniz

Download All
0 Kudos
Message 1 of 4
(3,365 Views)

That error looks like a device specific error. Have you tried contacting Agilent to see if there is anything wrong with the device?

 

I would try runnig some example VIs or simple communications with the device to figure out if the problem is with your code or with the instrument.

Jake H | Product Manager
0 Kudos
Message 2 of 4
(3,325 Views)

   Thank you for the reply

 

When I run the sg_control.VI it runs perfect. But, it does not do what I want it to do. It just sends a 1 cycle-burst sine wave to the scope (and does other functions such as incrementing frequency and turning the burst mode on). And I guess it is because Create Arbitrary Waveform.VI is taking the input data from the Simulate Signal.VI which generates sine wave.

 Another problem might be; everytime I run the code,it resets the device and thus deletes waveforms that are installed in its memory.Because when I try to use the instrument in the local mode (after I run the VI), and pick a Hanning window applied sine wave that is in the memory,all I get is a plain sine wave.

  When I tried Read From Measurement File.VI (along with the waveform data that I wanted to generate) as input to the Create Arbitrary Waveform.VI, it gave a VISA error in Configure Arbitrary Waveform.VI. What do you suggest me to do?

 

    Deniz

 

0 Kudos
Message 3 of 4
(3,308 Views)

In the initialize vi you can specify that you don't want to reset the arb.

And what error are you having with which file?

greetings from the Netherlands
0 Kudos
Message 4 of 4
(3,302 Views)