03-30-2018 07:01 PM
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.
04-02-2018 02:51 PM
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.
04-02-2018 03:18 PM
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.
04-03-2018 04:35 PM
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.