DefaultBufferSize 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)

IMessageBasedSession Interface See Also


Gets or sets the default size of read or write buffers when it is not explicitly defined as a parameter on read or write operations.

Namespace: NationalInstruments.VisaNS

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

Syntax

Visual Basic (Declaration)
Property DefaultBufferSize As Integer

C#
int DefaultBufferSize { get; set; }

Property Value

Default size of read or write buffers. The default value is 16,384 bytes.

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

Use this property to define the buffer size for a read or write operation that requires the size of elements to read or write, but the method parameters do not specify a size.

See Also

Reference

IMessageBasedSession Interface

NationalInstruments.VisaNS Namespace

WAS THIS ARTICLE HELPFUL?

Not Helpful