Gx3722ArbStart

Purpose

Starts waveform generation.

Syntax

Gx3722ArbStart (nHandle, nChannel, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle to a GX3722 board.
nChannel
SHORT
Channel number:
1.      GX3722_ARB_CH1.
2.      GX3722_ARB_CH2.
3.    GX3722_ARB_BOTH.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The nChannel parameter functions as a mask, allowing the user to start either channel or both.

Note: calling Gx3722ArbStop() API will set both channels’ output levels to 0V, channels waveforms will not change.

Example

The following start the waveform generation after loading values to each channel:

 

SHORT  nStatus;

DOUBLE adWave1[]={-5.0, -4.0, -3.0, -2.0, -1.0, 0.0, 1.0, 2.0, 3.0, 4.0};

DOUBLE adWave2[]={5.0, 4.0, 3.0, 2.0, 1.0, 0.0, -1.0, -2.0, -3.0, -4.0};

 

Gx3722ArbWriteWaveform(nHandle, GX3722_ARB_CH1, adWave1, 10, &nStatus);

Gx3722ArbWriteWaveform(nHandle, GX3722_ARB_CH2, adWave2, 10, &nStatus);

Gx3722ArbStart(nHandle, GX3722_ARB_BOTH, &nStatus)

 

See Also

Gx3722ArbSetMode, Gx3722ArbWriteWaveform, Gx3722ArbReadWaveform, Gx3722ArbStop, GxFpgaGetErrorString