Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Specfiying timeout value when creating new session

I am trying to create an IIviSession object using the GlobalResourceManager's Open method using the .NET IVI API.

 

One of the parameters to the method is a timeout value in milliseconds. My assumption is that the method would throw a timeout exception if it's not able to create a session within the specified timeout value. However, the method always takes around 15s before throwing an exception, regardless of the timeout value passed to the method.

 

I have been unable to find documentation for the class. Any ideas on how to specify a timeout when creating new sessions? Thanks.

0 Kudos
Message 1 of 4
(3,302 Views)

What kind of hardware are you working with? What class driver do you have? Are you using a specific driver as well?

 

Are you working with the NI VISA API?

 

The documentation for the method will depend on the exact driver you're using, but it's probably either going to come from the IVI foundation or the creators of the driver.

Bill B.
National Instruments
0 Kudos
Message 2 of 4
(3,232 Views)

I am using the .NET API from IVI Shared Components. 

 

Inside the Ivi.Visa namespace there's a GlobalResourceManager class, which has the following method:

 

public static IVisaSession Open(string resourceName, AccessModes accessModes, int timeoutMilliseconds);

 

I was hoping to use the timeoutMilliseconds parameter to control the timeout.

0 Kudos
Message 3 of 4
(3,230 Views)

it seems that it might be neccessary to get in contact with the drivers manufacturer

 

IVI driver developers can use the new VISA COM API. NI-VISA does not yet document this API, so only those developers familiar with the specification should use it.

0 Kudos
Message 4 of 4
(3,129 Views)