Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Agilent PNA N5224A

I am trying to save SnP files from Agilent PNA N5224A to a PC. I need to save the data in the instrument harddrive then transfer the files to PC harddrive. Is there is a commands sequence I need to follow?. Agilent or NI don't have a driver for this 4-port network analyzer.

0 Kudos
Message 1 of 25
(6,664 Views)

There is a Online help   for this device. Have you allready seen this example there?

0 Kudos
Message 2 of 25
(6,657 Views)

Thanks for reply, I still have errors.

I was able to communicate @ query IDN?. Then I created a s2p file in the instrument C drive. Using a Visa Write I send the following command. CALCulate1:DATA:SNP:PORTs:SAVE'1,2','C:/Balan/mytestdata.s2p;OPC. I received the following error

 

Error -1073807339 occurred at VISA Read in Agilent_ N5224A_1.viVISA:  (Hex 0xBFFF0015) Timeout expired before operation completed.

 

Please help.

Thank you

0 Kudos
Message 3 of 25
(6,640 Views)

Did you allready play with the Visa timeout value ( changing the attribute to a higher value) ? Creating the s2p file might take longer than default value for that setting ( IIRC 5s).

0 Kudos
Message 4 of 25
(6,635 Views)

How do I change the Visa time out value?. I increased the byte count for Visa read and it did not help. I also tried a timer between Write and Read.

0 Kudos
Message 5 of 25
(6,621 Views)

VISA Advanced palette

 

0 Kudos
Message 6 of 25
(6,613 Views)

I still having time out error. I have attached the VI (Labview 12) and word document.

 

Download All
0 Kudos
Message 7 of 25
(6,596 Views)

How is reading the Timeout value going to help you?

0 Kudos
Message 8 of 25
(6,593 Views)

There is no use for it, I just want to see the value. The value received is 10000.

Thanks.

0 Kudos
Message 9 of 25
(6,587 Views)

And is 10sec enough for what you want to do?

0 Kudos
Message 10 of 25
(6,584 Views)