LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA Read errors when attempting data collection

I have been struggling with this issue for the last couple of days, and I think it's time I ask for help.

 

I have written code that utilizes the VISA Read and Write VIs for communication with two different Anritsu network analyzers. The first model is an MS20 series which has built in drivers for LabVIEW and is connected through NI MAX using TCP/IP.  The other is an S820E which has no preexisting drivers and is directly connected to my pc via USB (I was unsuccessful connecting to it by ethernet with NI MAX, as it was unable to detect it on the network).  The S820E has a LabVIEW example in its programming manual for collecting trace data which I replicated and modified slightly to manually select traces.  However, I have run into two main problems when running the code:

 

Firstly, when trying to use more than one VISA Read after the initial read/write to the device the program locks up and has a timeout with the error code -1073807339.  I attempted to remedy this by having a new VISA Write for each read, and it worked to a point. This brought on my next problem. 

I initially started with 201 points of data for my testing and my modified code seemed to work.  However, when I increased the points to above 500 the analyzer was no longer able to collect the data and would output the error code -1073807305.

 

Because the SCPI commands are universal across the two connected analyzers, I thought to test my separate codes on the MS20 series VNA.  To my surprise, they communicated without error to the MS20 and were able to output trace data with over 1600 points (the output code was 1073676294).  I then removed the ethernet connection from the MS20 and used USB to see if that could've been the root cause of my issues.  Again, I was surprised to see the program worked flawlessly.  

 

At this point, I am at a loss as to what is causing the S820E analyzer to not run the code. I would appreciate any input or ideas to get this working!

0 Kudos
Message 1 of 4
(1,020 Views)

@ew0054 wrote:

I have been struggling with this issue for the last couple of days, and I think it's time I ask for help.

 

I have written code that utilizes the VISA Read and Write VIs for communication with two different Anritsu network analyzers. The first model is an MS20 series which has built in drivers for LabVIEW and is connected through NI MAX using TCP/IP.  The other is an S820E which has no preexisting drivers and is directly connected to my pc via USB (I was unsuccessful connecting to it by ethernet with NI MAX, as it was unable to detect it on the network).  The S820E has a LabVIEW example in its programming manual for collecting trace data which I replicated and modified slightly to manually select traces.  However, I have run into two main problems when running the code:

 

Firstly, when trying to use more than one VISA Read after the initial read/write to the device the program locks up and has a timeout with the error code -1073807339.  I attempted to remedy this by having a new VISA Write for each read, and it worked to a point. This brought on my next problem. 

I initially started with 201 points of data for my testing and my modified code seemed to work.  However, when I increased the points to above 500 the analyzer was no longer able to collect the data and would output the error code -1073807305.

 

Because the SCPI commands are universal across the two connected analyzers, I thought to test my separate codes on the MS20 series VNA.  To my surprise, they communicated without error to the MS20 and were able to output trace data with over 1600 points (the output code was 1073676294).  I then removed the ethernet connection from the MS20 and used USB to see if that could've been the root cause of my issues.  Again, I was surprised to see the program worked flawlessly.  

 

At this point, I am at a loss as to what is causing the S820E analyzer to not run the code. I would appreciate any input or ideas to get this working!


I guess the code is doing what you are telling it to do, which isn't always what you want it to do.  You should probably read the programming manual more closely to figure out why you're getting these errors.  We could probably help somewhat if you upload the manual and the code that isn't working.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 2 of 4
(1,008 Views)

Hi ew0054,

 

I am not quite clear with your questions, do you mean that your computer is messed with the connections with both devices?

 

Based of some of the infromation your share, I would suggest you create two VIs for testing your Issues.

 

Each VI you open a VISA session with individual device, do write "IDN?" and read the respond, to see if the connections are working for both devices at the same time.

 

 

0 Kudos
Message 3 of 4
(944 Views)

Hi ew005

 

Do you mind sharing your code?

Have you tried to close the application you are using to see the data coming from MS20? If not, close it completely or any other applications you are using to see data, then try S820E.

0 Kudos
Message 4 of 4
(934 Views)