GX1110, GX1120
Arbitrary Waveform Generator mode only.
Fill the waveform memory with the specific predefined waveform.
GtWaveArbFillPredefinedWaveform (nHandle, nChannel, nWaveform, dwStartAddress, dwSize, dParam1, pnStatus)
GX1120:
The function will fill the specified number of steps with the specified Predefined Waveform. The function will fill a waveform whose data values range from -2047 to +2047 and will fit one period.
The frequency of the waveform will be determined as follows: (Sampling Rate)/(Waveform size).
GX1120:
Since the memory is shared by both channels, there is no meaning to the channel number.
Data point value of 0x7FFF represents highest output amplitude and 0x8000 represents lowest output amplitude.
NOTE: The best way to generate waveforms is via the WaveEasy application and run time libraries – The Waveform development environment and script libraries can be used to create, import, edit, save and export waveform files.
The following example fills the first 4096 steps with a Sine waveform:
GtWaveArbFillPredefinedWaveform (nHandle, GTWAVE_CHANNEL_A, GTWAVE_WAVEFORM_SINE, 0, 4096, &nStatus);
GtWaveArbSetMarker, GtWaveArbSetSampleRate, GtWaveArbSetWaveformLength, GtWaveArbSetSync, GtWaveArbReadWaveformData, GtWaveArbWriteWaveformData, GtWaveArbFileLoad, GtWaveArbFileSave