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: 13.0.40.167

Syntax

Visual Basic (Declaration)
Public Property Timeout As Integer

C#
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.

Exceptions

ExceptionCondition
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.

Remarks

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

Reference

Session Class

NationalInstruments.VisaNS Namespace

WAS THIS ARTICLE HELPFUL?

Not Helpful