Timeout Property

NI-VisaNS .NET Class Library Help for Visual Studio 2010

Edition Date: August 2012

Part Number: 370627F-01

»View Product Info
Download Help (Windows Only)

Session Class See Also

Gets or sets the minimum timeout value to use in milliseconds when accessing the device associated with the session.

Namespace: NationalInstruments.VisaNS

Assembly: NationalInstruments.VisaNS (in NationalInstruments.VisaNS.dll) Version:


Visual Basic (Declaration)
Public Property Timeout As Integer

public int Timeout { get; set; }

Property Value

Minimum timeout value to use when accessing the device associated with the session. ImmediateTimeout to timeout immediately; InfiniteTimeout to never timeout. The default value is 2000 milliseconds.


VisaException The property is set to an invalid state.
DllNotFoundException The NI-VISA driver library cannot be found.
EntryPointNotFoundException A required operation in the NI-VISA driver library cannot be found.
ObjectDisposedException This member is called after the Dispose method is called directly from code or indirectly through a finalizer.


A timeout value of ImmediateTimeout means that operations never wait for the device to respond. A timeout value of InfiniteTimeout disables the timeout mechanism.

The actual timeout value that the driver uses might be higher than the requested value. You can read this property after setting it to learn what value the driver has coerced the timeout value to.

This property is a default value for methods that take a timeout value and are overloaded with no timeout parameter.

See Also


Session Class

NationalInstruments.VisaNS Namespace


Not Helpful