Tektronix Technical Forums are maintained by community involvement. Feel free to post questions or respond to questions by other members. Should you require a time-sensitive answer, please contact your local Tektronix support center here.

VISA error = Timeout expired before operation completed.

Model 2651A
Post Reply
grin968
Posts: 6
Joined: October 18th, 2012, 10:26 am
Country: United States

VISA error = Timeout expired before operation completed.

Post by grin968 » October 18th, 2012, 11:03 am

I'm getting "VISA error = Timeout expired before operation completed." in attempt to run a sample code provided with IVI drivers.
This exception is thrown in catch (COMException) block on this line
_driver.Utility.ErrorQuery(ref errorCode, ref errorMessage);

Running on Windows 7 64-bit OS
KIOL-850C05.exe
Ke26XXA-x64 drivers

Tried to use sample code with only this installed.
Build failed due to Keithley.Ke26XXA.Interop 1.4.5 references to VisaComLib version 5.0.0.0. Where installation provides NI's VisaComLib 3.2.0.0.

Installed IVI Foundation's:
VisaSharedComponents64_1.4
IviSharedComponents64_2.2.1

The build is working now, but doesn't execute.
Please advice,
Greg

One more detail:
Device initialization, setting parameters work OK. Call
double[] readings = _driver.Measurement.Buffer.MeasureData.GetAllReadings(bufferName);
ends up with COMException, which is handled and calls failing _driver.Utility.ErrorQuery(ref errorCode, ref errorMessage);

grin968
Posts: 6
Joined: October 18th, 2012, 10:26 am
Country: United States

Re: - error = Timeout expired before operation completed.

Post by grin968 » October 18th, 2012, 3:49 pm

Update.
Per conversation with support
1. re-installed Ke26XXA-x64 drivers. No change.
2. Build applications targeting specific CPU. No change.

grin968
Posts: 6
Joined: October 18th, 2012, 10:26 am
Country: United States

Re: - error = Timeout expired before operation completed.

Post by grin968 » October 18th, 2012, 5:27 pm

Update:
Installed lastest NI's:
- IVI Compliance Package 4.50
- VISA5.12
Still no luck :(

grin968
Posts: 6
Joined: October 18th, 2012, 10:26 am
Country: United States

Re: - error = Timeout expired before operation completed.

Post by grin968 » October 18th, 2012, 6:25 pm

Here is a trace log if it can help...
Attachments
Ke26XXA_2012-10-18_18-16-30.xml
Linear Sweep sample
(18.9 KiB) Downloaded 1359 times

grin968
Posts: 6
Joined: October 18th, 2012, 10:26 am
Country: United States

Re: - error = Timeout expired before operation completed.

Post by grin968 » October 20th, 2012, 4:05 pm

Here is an update.
I re-installed Windows 7 64 from scratch and tried various scenarios and sequences of installations.
Every time I run new sequence on new installation.

Good: finally found the minimal path to install packages necessary to build sample code.
Bad: it is still fails at the Measurement.Buffer.MeasureData.GetAllReadings(bufferName);

When compile with Platform Target x64 getting these warnings:
warning CS1607: Assembly generation -- Referenced assembly 'VisaComLib.dll' targets a different processor
warning CS1607: Assembly generation -- Referenced assembly 'System.Data.dll' targets a different processor
warning CS1607: Assembly generation -- Referenced assembly 'IviLxiSyncLib.dll' targets a different processor
warning CS1607: Assembly generation -- Referenced assembly 'IviDriverLib.dll' targets a different processor
warning CS1607: Assembly generation -- Referenced assembly 'mscorlib.dll' targets a different processor
warning CS1607: Assembly generation -- Referenced assembly 'Ke26XXALib.dll' targets a different processor


Time to try 32 bit...
I can change the reference of Ke26XXALib.dll to 64 bit one, the rest of libs are registered as COM.

grin968
Posts: 6
Joined: October 18th, 2012, 10:26 am
Country: United States

Re: - error = Timeout expired before operation completed.

Post by grin968 » October 22nd, 2012, 11:49 am

Windows 7 32 bit doesn't work either.

Here is a list of installed software:
NI-VISA 5.12
NI-ICP 4.5
Keithley SCPI-856C04
KIOL-850c05
KE26XXA IVI-COM Driver v1.4.5.0

I don't see a way to work with the device.
And no help from customer support....

Kenneth P
Keithley Applications
Keithley Applications
Posts: 212
Joined: October 25th, 2010, 1:31 pm
Country: United States
Contact:

Re: - error = Timeout expired before operation completed.

Post by Kenneth P » October 26th, 2012, 7:48 am

As I understand, the timeout is a result of performing a query with a TSP script that does not program the 2651A to output data. The Instrument Command Language (ICL) is unique compared to SCPI program coding. The 2600A and 2600B series does include the IEEE 488.2 commands such as *IDN?. The 2600 will pass the response as required by the standard. One item to note regarding the IEEE commands, these commands cannot be used with a test script.
As for retrieving data from the 2600A and B series, the print() function must be issued within the script before performing a remote read function. Here is a very simple example to acquire a measurement to the controller:

reading=smua.measure.v() -- remote write
print(reading) --remote write
<perform remote read here>

When collecting data and storing to a buffer, use the printbuffer() function call in your script.

Post Reply

Return to “2651A High Current SourceMeter”

Who is online

Users browsing this forum: No registered users and 0 guests