Sets the number of vectors (steps) to run.
GX1649, GX1649-1
GxAoDioSetVectorCount (nHandle, dwVectorSize, pnStatus)
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. |
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.
The following example sets the number of vectors to 1000:
SHORT nStatus;
GxAoDioSetVectorCount(nHandle, 1000, &nStatus);
GxAoDioReadChannelMemory, GxAoDioWriteMemory, GxAoDioGetVectorCount, GxAoGetErrorString