GxAoDioSetVectorCount

Purpose

Sets the number of vectors (steps) to run.

Applies

GX1649, GX1649-1

Syntax

GxAoDioSetVectorCount (nHandle, dwVectorSize, pnStatus)

Parameters

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

Comments

This function sets 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 sets the number of vectors to 1000:

 

SHORT nStatus;

 

GxAoDioSetVectorCount(nHandle, 1000, &nStatus);

 

See Also

GxAoDioReadChannelMemory, GxAoDioWriteMemory, GxAoDioGetVectorCount, GxAoGetErrorString