Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

viWrite succeeds but viPrintf fails

Hello,

 

I am using GPIB to communicate between a PC (Keysight B1505 running Windows Embedded) and a remote host (wafer probe station connected to Windows XP computer).

 

In Keysight's Connection Expert software I can see the instrument is connected. When I use Keysight's Interactive IO I can communicate with the wafer probe station. For example, an "*idn?" command will return the expect string from the probe station. However, when I try to run a "full routine" in Keysight's software, the connection will timeout waiting for a response from the probe station. For example, I see a "*OPC?" command issued with the method viPrintf will timeout after 10 seconds. Just using Keysight's Interactive IO I can issue an "*OPC?" query that will succeed (not timeout). Using the interactive IO I notice this uses VISA::viWrite rather than VISA::viPrintf.

 

The same code was previously working, so I know it is not a matter of increasing the timeout. I suspect it may have to do with line termination as some settings there may have been changed.

 

Do anyone have any insight into this? 

0 Kudos
Message 1 of 2
(527 Views)

Since the commands seem to use all a \n as termination character it may be actually useful to configure for that device the according termination character in NI-MAX.

 

In your image IMG_5356 try to set the EOS Character value to 10 instead of 0

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 2
(465 Views)