GxAoDioArm

Purpose

Arms or disables arming the specified group.

Applies

GX1649, GX1649-1

Syntax

GxAoDioArm (nHandle, bArm, bContinuous, pnStatus)

Parameters

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.

Comments

Disabling arming the group (bArm=FALSE) will cause the card to stop generating waveforms.

Example

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);

 

See Also

GxAoDioTrig, GxAoGetErrorString