Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Errors with VISA & Manually Entered Socket

Dear all,

 

When I try to create ethernet instruments by specifying the port number (entering raw socket) everything goes smoothly, I can create my instrument and it seems to be "active/online". However, when I try to communicate with the instrument, I get error "VISA: (Hex 0xBFFF0015) Timeout expired before operation completed."

 

My NI-VISA is up to date.

 

Thanks in advance!

-F

0 Kudos
Message 1 of 7
(1,357 Views)

Do you have a linefeed character (\n) appended to the end of the command you are sending?

0 Kudos
Message 2 of 7
(1,305 Views)

Yes, I tried with \n and without \n. 

 

Is it possible that some instruments simply do not allow VISA communication?

0 Kudos
Message 3 of 7
(1,296 Views)

"Is it possible that some instruments simply do not allow VISA communication?"

 
Yes. Visa supports 3 different LAN protocols: HiSLIP, VXI-11 and a raw socket. What instrument are you using?
0 Kudos
Message 4 of 7
(1,285 Views)

If you tell us the make and model of instrument, and perhaps a link to the manual, then we can probably be more helpful.

 

Craig

0 Kudos
Message 5 of 7
(1,280 Views)

Hi Craig,

 

Trying to communicate with a MiniCircuit ZTM switch. I'm following the same procedure as this https://www.minicircuits.com/softwaredownload/App%20Note%20-%20VISA%20Control.pdf but still can't communicate with the instrument... I tried using the Keysight Connection Expert to see if the VISA address would work and it did. 

 

Any ideas why it's not working in NI MAX?

0 Kudos
Message 6 of 7
(1,256 Views)

So clearly that works instrument works with VISA.  But what they don't mention is that having multiple vendor VISA drivers installed on your PC can cause conflicts. 

If Keysight IO works, then you have Keysight VISA installed (probably as well as NI VISA).  

 

This is a common problem with GPIB-USB adaptors, and there's a way around the problem described here - https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YHh0CAG&l=en-CA

 

Hope that helps.

Craig

0 Kudos
Message 7 of 7
(1,250 Views)