Keysight VISA.NET Help
SetBufferSize Method (SerialSession)



The buffer(s) to be resized.
The new size of the buffer(s).
Sets the size of the read and/or write buffer for serial communication.
Syntax
'Declaration
 
Public Function SetBufferSize( _
   ByVal buffers As IOBuffers, _
   ByVal size As Integer _
) As Boolean
'Usage
 
Dim instance As SerialSession
Dim buffers As IOBuffers
Dim size As Integer
Dim value As Boolean
 
value = instance.SetBufferSize(buffers, size)
public bool SetBufferSize( 
   IOBuffers buffers,
   int size
)
public:
bool SetBufferSize( 
   IOBuffers buffers,
   int size
) 

Parameters

buffers
The buffer(s) to be resized.
size
The new size of the buffer(s).

Return Value

Indicates whether the buffer size was successfully reset.
Remarks

Not all serial drivers support user-defined buffer sizes, so it is possible that a this method may not be able to control this feature. If an application requires a specific buffer size for performance reasons, but this method cannot control the size, Keysight recommends that the calling program use some form of handshaking to prevent overflow conditions.

Requirements

Current with Keysight IO Libraries Suite 18

See Also

 

 


© Keysight Technologies 2015-2025