Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

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

Media Vault

Software Library

Restoration Projects

Artifacts Sought

viOut16(3)

HP-UX

NAME

viOut16 − Writes a 16-bit word to the specified memory space

SYNOPSIS

viOut16(ViSession vi, ViUInt16 space, ViBusAddress offset,
ViUInt16 val16);

 

Description

 
This function writes an 16-bit word to the specified memory space (assigned memory base  offset).  This function takes the 16-bit value and stores its contents to the address space pointed to by space.  The offset must be a valid memory address in the space.  This function does not require viMapAddress to be called prior to its invocation.
 

Parameters

 

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

space An input parameter. Specifies the address space.  (See the following table.) 
 

offset An input parameter.  Offset (in bytes) of the memory to write to. 
 

val16 An input parameter. Data to write to bus (16-bits). 
 
 

Values for space Parameter:

 

VI_A16_SPACE Maps in VXI/MXI A16 address space. 
 

VI_A24_SPACE Maps in VXI/MXI A24 address space. 
 

VI_A32_SPACE Maps in VXI/MXI A32 address space. 
 
 

Return Values

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

VI_SUCCESS Operation completed successfully. 
 

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

VI_ERROR_NSUP_OPER The given vi does not support this function. 
 

VI_ERROR_BERR Bus error occurred during transfer. 
 

VI_ERROR_INV_SPACE Invalid address space specified. 
 

VI_ERROR_INV_OFFSET Invalid offset specified. 
 

VI_ERROR_NSUP_OFFSET Specified offset is not accessible from this hardware. 
 

VI_ERROR_NSUP_WIDTH Specified width is not supported by this hardware. 
 
 

See Also

 
viIn8 and viIn16
 

AUTHOR

viOut8 was developed by HP

Hewlett-Packard Comapny  —  September 29, 1999

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