Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Use NI-VISA control Ethernet communication with VNA

Solved!
Go to solution

Chris,

 

My PC and equipment have same IP sub-net,etc, only last section of IP address not same. So it looks not the IP settings.

 

Thanks

 

Xin

0 Kudos
Message 11 of 15
(1,399 Views)

Hi Xin,

 

Sorry, it's taking a little longer than I thought to get a response from R&D on that error code.  I haven't forgotten about you though!

 

Have a great day,

 

Chris

Applications Engineer
National Instruments
0 Kudos
Message 12 of 15
(1,396 Views)

Hi Xin,

 

So that error -1073707339 is not a valid VISA error.  Could you have mistyped it?

 

If the error is actually -1073807339 then it is a timeout error.  Again, I would think this is occuring because your device is not sending out any data.

 

Have a great day,

 

Chris

Applications Engineer
National Instruments
0 Kudos
Message 13 of 15
(1,388 Views)

Chris,

 

Thanks.

 

When I ran VBA code with NI-VISA, it looks the equipment didn't send back anything because my feedback variable is empty. The confusion thing is that I use OpenChoice from Tektronix to search any connected device, I can see the equipment IP address and its feedback" 100 connection accpted".

 

Anyway, it looks not only VISA issue. I will continue work on it.

 

Xin

0 Kudos
Message 14 of 15
(1,385 Views)
Solution
Accepted by topic author xinli

Chris

 

as you said, VNA should return something for my viRead. So I need to add one line

 

viWrite(xxxx, "*IDN?", xx, xxx) before I do viRead. Now connection is very easy.

 

Thanks

 

Xin

0 Kudos
Message 15 of 15
(1,372 Views)