National Instruments FOUNDATION NI-FBUS Hardware And Software User Manual page 67

Table of Contents

Advertisement

nifGetBlockList
Purpose
Returns a list of information for all blocks of the specified type present in the VFD.
Format
nifError_t
Input
ud
whichTypes
numBlocks
Output
info
numBlocks
Context
VFD.
Description
nifGetBlockList
can be a resource block, transducer block, or function block residing within a VFD. Only
blocks of the types specified by
To determine how many list items are to be returned, call the function twice. The first time
you call the function, set the
stating that there were not enough buffers configured, and it will return a new number for
. Use this new
numBlocks
call the function the second time, use this new parameter. By doing so you will allocate only
as much memory as necessary.
nifBlockInfo_t
typedef struct {
char fbTag[TAG_SIZE + 1];
uint16 startIndex;
© National Instruments Corporation
nifGetBlockList(
nifDesc_t ud,
uint8 whichTypes,
nifBlockInfo_t *info,
uint16 *numBlocks)
The descriptor of a VFD.
Specifies what types of blocks to return (function, transducer,
or physical).
The number of buffers allocated in the
The list of information associated with each block.
The number of blocks actually in the VFD.
returns information about all the blocks in the specified VFD. A
whichTypes
numBlocks
parameter to allocate memory for the data. When you
numBlocks
is defined as follows:
6-5
Chapter 6
are returned.
parameter to 0. The function will return an error
NI-FBUS Hardware and Software User Manual
NI-FBUS Function Reference
list.
info
block

Advertisement

Table of Contents
loading

Table of Contents