Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

PNA sweep averaging

Hello,
What I need to do:
1. Setup the agilent PNA N3382A to perform Averaged measurement on 1 Channel, set up sweep points, trace format,etc.
2. Trigger the measurement to start
3. Set sweep averaging ON.
4. Wait for the measurement(averaging) to complete
5. Then retrieve the averaged measurement data
Attached is the example from AGPNA.dll. I just addin the averaging part.
Problem is that the program didn't wait for measurement(averaging) to complete. It just record the data while averaging is still running. 
Some one can help me to solve this problem. Really appreciate. 😃

0 Kudos
Message 1 of 6
(3,907 Views)

What you attached is a VI with a subVI from an old driver. Don't know what example you are referring to because you don't provide the name though it could be different in the current driver anyway. There is also no dll involved so I miss that reference as well.

 

Are you doing anything like checking for operation complete or reading the status byte register?

0 Kudos
Message 2 of 6
(3,903 Views)

Hi Dennis,

 

Becoz I'm using Labview 8.6. So I installed agpna instrument drive for lavview 8.0. and the

 

 

0 Kudos
Message 3 of 6
(3,898 Views)

Hi Dennis,

 

Sorry attached wrong program. Should be AGPNA Config And Read Data Application.vi

My system is main for data acquirtion. And I can set any parameters before data has been read out.

 

 

0 Kudos
Message 4 of 6
(3,895 Views)

Let me make myself clear.

 

AGPNA Config And Read Data Application.vi is just one portion of my whole program. And it doesn't include saving function to the hardships. But is enough to illustrate the error---the program is directly go to data output without waiting for averaging to complete.

 

I addin the average function is becoz we want minimize the noise to get better output data. My program is main for data acquisition.

 

Thanks for your time!

0 Kudos
Message 5 of 6
(3,892 Views)

You downloaded the older llb type driver and not the recomended project-style driver for 8.x.

 

In any case, like I said, you will have to query the status register or do a OPC? command (if supported) before doing your reading. I don't have the instrument any more or the manual so this is something you need to look up.

0 Kudos
Message 6 of 6
(3,887 Views)