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)

VxiSession Class See Also


Gets or sets the default size of read or write buffers when the size is not explicitly defined by 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)
Public Property DefaultBufferSize As Integer

C#
public int DefaultBufferSize { get; set; }

Property Value

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

Implements

IMessageBasedSession.DefaultBufferSize

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

This property specifies the buffer size for read and write operations that take a size of elements to read or write, but you use an overload that does not take a size.

See Also

Reference

VxiSession Class

NationalInstruments.VisaNS Namespace

WAS THIS ARTICLE HELPFUL?

Not Helpful