Gx3722ArbWriteWaveform

Purpose

Write the waveform to memory.

Syntax

Gx3722ArbWriteWaveform (nHandle, nChannel, pavWaveform, dwWaveformSize, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle to a GX3722 board.
nChannel
SHORT
Channel number:
1.      GX3722_ARB_CH1.
2.   GX3722_ARB_CH2.
padWaveform
PDOUBLE
Buffer to hold the waveform array of Doubles.
dwWaveformSize
DWORD
Number of elements in the buffer to write.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The arbitrary waveform memory cannot not be written to and read from at the same time.  Calling this function will stop any Arb playback in progress, similar to a call to Gx3722ArbStop() API. Any programmed voltages outside of the acceptable range of -5.0 Volts to 5.0 Volts will be clamped at the appropriate limit.

Example

The following example writes the waveform for Arb channel 1:

 

SHORT  nStatus;

DOUBLE adWave[]={1.0, 2.0, 3.0, 4.0};

 

Gx3722ArbWriteWaveform(nHandle, GX3722_ARB_CH1, adWave, 4, &nStatus);

 

See Also

Gx3722ArbSetMode, Gx3722ArbReadWaveform, Gx3722ArbStart, Gx3722ArbStop, GxFpgaGetErrorString