Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ viSetBuf(3) — HP-UX Instrument Control Library G.03.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

viSetBuf(3)

HP-UX

NAME

viSetBuf − Sets the buffer size of the read or write formatted I/O buffers

SYNOPSIS

viSetBuf(ViSession vi, ViUInt16 mask, ViUInt32 size);

 

Description

 
This function sets the buffer size of the read and/or write formatted I/O buffer(s).  The mask parameter specifies whether the buffer is a read or write buffer.  The mask parameter can specify both buffers by "bit-ORing" the values VI_READ_BUF and VI_WRITE_BUF together.
 

Parameters

 

vi An input parameter. Unique logical identifier to a session. 
 

mask An input parameter. Specifies the type of buffer (VI_READ_BUF and/or VI_WRITE_BUF). 
 

size An input parameter. The size to be set for the specified buffer(s). 
 
 

Return Values

 
This is the functional return status.  It returns either a completion code or an error code as follows.
 

VI_SUCCESS Buffer size set successfully. 
 
 

VI_ERROR_INV_SESSION VI_ERROR_INV_OBJECT The given session or object reference is invalid (both are the same value). 
 

VI_ERROR_ALLOC The system could not allocate the buffer(s) of the specified size because of insufficient system resources. 
 

VI_ERROR_INV_MASK The system cannot set the buffer for the given mask. 
 

AUTHOR

viSetBuf was developed by HP

Hewlett-Packard Comapny  —  September 29, 1999

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026