GxAoArbArmGroup

Purpose

Arms or disables arming the specified group.

Applies

GX1649, GX1649-1, GX1632e

Syntax

GxAoArbArmGroup (nHandle, nGroup, bArm, bContinuous, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX1649 or GX1632e board.
nGroup
SHORT
Group number:
0.   GXAO_GROUPA
1.   GXAO_GROUPB
2.   GXAO_GROUPC
3.   GXAO_GROUPD
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.

GX1632e: The parameter bContinuous is not used.  Triggers are always continuous.  DIO0 is used for triggering and the trigger occurs on an active low signal.

Example

The following example generates a repeated waveform for 1000 mSec in group A:

 

SHORT nStatus;

SHORT nTriggerMode;

 

GxAoArbArmGroup (nHandle, GXAO_GROUPA, TRUE, TRUE, &nStatus);

Sleep(1000);

GxAoArbArmGroup (nHandle, GXAO_GROUPA, FALSE, TRUE, &nStatus);

 

See Also

GxAoArbTrigGroup, GxAoArbSetGroupTrigger, GxAoGetErrorString