Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-VISA, USB Interface throws timeout exception when retrieving large amounts of dat from Agilent 34972A.

Hi,

I am trying to get the stored data in the 34972A via the USB interface, but I can only get a couple of scans and then the software stops communicating with the 34972A. I have tested the software with interfaces such as: RS232, GPIB for 34970A LAN for 34972A and all work, I have been able to get the stored data from the equipment. When I try to use the USB interface, I could control all the functions in the equipment, but when i am about to download the data, I could only get a few readings and then I loose communication. I have also use NI MAX to send the FETCh? command and then start reading the data... I get the same problem after exactly the same number of readings.. The last read before the error reads the following in my program: ..... ,-9.90000000E+37,2012,08,16,14,37,12.017,205,0,-9.90000000E+37,2012,08,16,14,37,12.055,206,0,-9.90000000E+37,2012,08,16,14,37,12.094,207,0,-9.90000000E+37,2012,08,16,14,37,12.1??? .... in NIMAX .... ,-9.90000000E+37,2012,08,16,14,37,12.1\x98\xFA\xDA\x00\x05\x00\00\x00\n ....

 

The software was developed using the following: Windows 7, C#, NIVISA (latest version).

 

I am sending the FETCh? Command and reading back the stored data.

I tried the FETCh? Command using the LAN interface and it works great.

In the 34970A I tried the FETCh? Command with RS232 and GPIB and it worked well.

Now I was trying to use the USB interface, but it starts getting the data okay and after a couple of bytes it stops and NIVISA times out.

It is weird that the same library same software works well with all the other interfaces, but not USB.

 

All other commands like setting up the channels, scanning list, etc. all work fine using all interfaces.  Only when I need to retrieve lots of data the USB interface starts okay, but eventually times out.

 

Please help.

0 Kudos
Message 1 of 5
(5,777 Views)

Hi Albert,

 

Can you please confirm that you are using the latest driver from IDNET?

http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=014F4CD7EF78136AE0440003BA7CCD...

 

Also, has it ever worked with USB?

 

Finally, have you tried using a different USB cable?

 

Sincerely,

 

Bogdan Buricea

Applications Engineering

National Instruments

Bogdan Buricea
Applications Engineer
National Instruments
0 Kudos
Message 2 of 5
(5,769 Views)

Hi Bogdan,

Thank you for your reply.

The version of NIVISA is 5.1.2.

 

This is the first time I am using the USB interface to control the equipment.  I can control all the functions.. set up the channels, take a simple scan, retrieve channel information, etc.  The problem happens when I try to download the stored scan readings.  It gets the first few bytes of data and then stops. 

 

I will try a different USB cable and post my results.

 

Regards,

Albert J.

0 Kudos
Message 3 of 5
(5,759 Views)

Hi,

I did a little more research, I used 3 different software to download the data from the 34972A to the PC.  Agilent connection expert, NI-MAX and my software.  All return the same result...please see the attached file.

 

Best Regards,

AJ

0 Kudos
Message 4 of 5
(5,754 Views)

Hi Albert,

 

If you are not able to get the readings with Agilent's software, I would recommend contacting their support to troubleshoot this issue.

 

On our end, can you please try installing the latest version of NI VISA, 5.2?

http://joule.ni.com/nidu/cds/view/p/id/3337/lang/en

 

Also, I think it might be worth trying a different USB cable or on a different computer if possible.

 

Regads,

 

Bogdan Buricea

Applications Engineering

National Instruments

Bogdan Buricea
Applications Engineer
National Instruments
0 Kudos
Message 5 of 5
(5,743 Views)