Al_setboardstring – Measurement Computing ADLIB WIN User Manual

Page 43

Advertising
background image

Chapter 10 Board Functions

10-3

10.3 AL_SetBoardString

Prototype

C\C++

ERRNUM

AL_SetBoardString(BRDID

brdid, LPSTR lpstrBrd);


Visual Basic for Windows

Function

AL_SetBoardString(ByVal

brdid As Long,

ByVal lpstrBrd As String) As Long


BRDID brdid

ID number of the board

LPSTR lpstrBrd

source address


The AL_SetBrdString function copies the lpstrBrd string to the ADLIB board string. The maximum
string length allowed is 80 characters, including the NULL termination character. If the input string
exceeds the 80 character limit the resulting string will be truncated and NULL padded.


Parameter

Description

brdid

Specifies the ID number of the board from which the board driver’s software

version number is to be retrieved.


lpstrBrd

Points to the user define board description string.


Returns:
On success ERRNUM is set to 1, otherwise ERRNUM contains the last error code that occurred during the
call.

Related Functions:
AL_GetBoardString

Program References:
NONE

Supported Boards:
All

Advertising