Generates a pulse waveform with the specified amplitude and width.
Gx3722ArbPulseWaveform (nHandle, nChannel, dBaseAmplitude, dPeakAmplitude, dPulsePeriod, dPulseWidth, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle to a GX3722 board. |
nChannel |
SHORT |
Channel number:1. GX3722_ARB_CH1: Arb channel 1.2. GX3722_ARB_CH2: Arb channel 2. |
dBaseAmplitude |
DOUBLE |
Pulse low amplitude. Low amplitude can be from-2.25V (GX3722_ARB_MIN_PULSE_BASE_AMPLITUDE) to +2.25V (GX3722_ARB_MAX_PULSE_BASE_AMPLITUDE). |
dPeakAmplitude |
DOUBLE |
Pulse peak amplitude. Peak amplitude can be from-2.25V (GX3722_ARB_MIN_PULSE_PEAK_AMPLITUDE) to +2.25V (GX3722_ARB_MAX_PULSE_PEAK_AMPLITUDE). |
dPulsePeriod |
DOUBLE |
Pulse period in mSec. Pulse period can be from 0.00488281 mSec (GX3722_ARB_MIN_PULSE_PERIOD) to 25mSec (GX3722_ARB_MAX_PULSE_PERIOD). |
dPulseWidth |
DOUBLE |
Pulse width in mSec. Pulse width can be from 0.00488281 mSec (GX3722_ARB_MIN_PULSE_PERIOD) to 25mSec (GX3722_ARB_MAX_PULSE_PERIOD). |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
Generates a pulse waveform with the specified amplitude and width. Calling this function will stop any Arb playback in progress, similar to a call to Gx3722ArbStop() API.
Note: peak amplitude can be only be equal or greater than the base amplitude.
The following example generates a 1mSec pulse waveform, 0.5mSec width, and amplitude of 0V to 2V on channel 1:
SHORT nStatus;
Gx3722ArbPulseWaveform(nHandle, GX3722_ARB_CH1, 0.0, 2.0, 1.0, 0.5, &Status);
Gx3722ArbWriteStatic, Gx3722ArbWriteWaveform, Gx3722ArbReadWaveform, Gx3722ArbStart, Gx3722ArbStop, Gx3722ArbLoadWaveform, GxFpgaGetErrorString