GxAoDioGetVectorCount

Purpose

Returns the number of vectors (steps) to run.

Applies

GX1649, GX1649-1

Syntax

GxAoDioGetVectorCount (nHandle, pdwVectorSize, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX1649 board.
pdwVectorSize
PDWORD
Returns the number of vectors to run (1-8192)
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

This function returns the number of vectors that will be run during one iteration of a loop. Use the GxAoDioArm to setup the board to generate a loop or a single burst.

Example

The following example gets the number of vectors to execute:

 

SHORT nStatus;

DWORD dwVectorSize;

 

GxAoDioGetVectorCount(nHandle, &dwVectorSize, &nStatus);

 

See Also

GxAoDioSetVectorCount, GxAoDioWriteMemory, GxAoGetErrorString