Arms or disables arming the specified group.
GX1649, GX1649-1
GxAoDioArm (nHandle, bArm, bContinuous, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX1649 board. |
bArm |
BOOL |
TRUE (1) to arm the group and FALSE (0) to disable arming and stop generating waveforms. |
bContinuous |
BOOL |
TRUE (1) will cause the waveform to be repeated (until bArm is FALSE). FALSE (0) will cause only one waveform to be generated. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
Disabling arming the group (bArm=FALSE) will cause the card to stop generating waveforms.
The following example generates a repeated waveform for 1000 mSec and then halts:
SHORT nStatus;
SHORT nTriggerMode;
GxAoDioArm (nHandle, GXAO_GROUPA, TRUE, TRUE, &nStatus);
GxAoDioTrig(nHandle, &nStatus);
Sleep(1000);
GxAoDioArm (nHandle, GXAO_GROUPA, FALSE, TRUE, &nStatus);