Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA Read Timout

Solved!
Go to solution

Hello,

Using LabVIEW 2020 and the certified Keithley 648X instrument driver package.

I have (2) PC'S running Windows 10 64-bit; LabVIEW on both machines.

One one machine, the Initialize routine finishes nicely with no errors.  On the other, (refer to the snippet), timeout occurs waiting for bytes which is set to 256 immediately after the Error Query Command.  It appears the code is not 'automatically' stopping when a new-line is received, even though that is set in the routine.  If I wire the 'Bytes at port' indicator, (10 Bytes) code progresses normally with no error.

 

On the other machine, this is not happening. 

All settings, as far as I can tell, are identical on both.

Only difference is the machine this is occurring on is 2020 SP!; the other is not.

Strange.  Any suggestions?

Thanks,

Chris

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

Hi,


Have you tried to run the vi only with LabView 2020, not SP1?

0 Kudos
Message 2 of 5
(1,172 Views)

Thanks,

Yes.  Even tried 2019.

Chris

 

0 Kudos
Message 3 of 5
(1,168 Views)
Solution
Accepted by topic author bonnerupc

Solution found.

 

Seems the original Keithley 648x LabVIEW Driver is programmed to assert a simple line feed for termination of VISA reads and writes.  For 'writes' this is acceptable, but 'read' responses are terminated by CRLF; my ver. of VISA would not accept a simple LF.  Fortunately, the 648x unit will accept CRLF for both reads and writes and all ate happy now.

Message 4 of 5
(1,136 Views)

Hi,

Thank You for sharing the solution

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