10-09-2008 06:25 PM
Over the past several weeks I have been troubleshooting a program I wrote in LabVIEW 8.6 to control our Agilent E5071C ENA. The program is designed to calibrate the network analyzer (measure calibration data and calculate calibration coefficients) and store the instrument's state after calibration. I have used the AGENA (AGilent ENA) driver to write the program.
Here's my problem: the program runs flawlessly until the "Measure Calibration Data.vi" command is executed for the first through cal. In other words, that same VI appears six times prior in the program (for short, open, and load, on a two-port cal) and produces no error. When it attempts to run the through cal, I can watch the screen of the ENA as it sweeps, but when the sweep for the first through cal is complete, the instrument gives me a "-420: Query UNTERMINATED" error, thus stopping the program.
I have been through the bowels of the individual VI's written within the AGENA driver and cannot identify any errors in the GPIB coding. I have cross-referenced all of the strings in the driver against what is in the ENA's programming manual. The -420 error references me to 6.3.2 IEEE488.2, does anyone have access to this?
Any help on this matter would be greatly appreciated.
Adam Fern
IDEAL Industries, Inc.
Solved! Go to Solution.
10-10-2008 01:42 PM
Hi Adam,
Are you using the drivers from our Instrument Driver Network? The error you are receiving means that the instrument was addressed to talk, but there was no message. Is the command you are using not a query (i.e., doesn't end in a "?")? If yes, then only use the write operation in your application and remove the read.
Thank you,
10-16-2008 02:05 PM
After much toil, I caved and called the district sales manager for my area (Jorge Noguera, San Diego) to schedule a help-session. Long story short, here's what needs to take place:
In "Measure Calibration Data.vi" there is a case structure which is user-selectable for which calibration standard to use (open, short, load, through, isolation). This VI needs to be modified. After "agena Write.vi" create another case structure before the "agena Wait For Operation Complete.vi." Inside the case structure place a flat sequence with a "Wait (ms)" command - set the wait command to 5000. In the case structure's selector label designate "3" (the same case which corresponds to the through cal standard) to the case with the wait command. Wire the case selector to the unsigned word control for the case selector of the preexisting case structure (the one which sets the cal standard). Thus, when the cal standard is set to through, the wait case structure is implemented after the agena Write VI.