Appendix B
Function Reference
©
National Instruments Corporation
B-17
ni54xx_GenerateWaveform
Format
__declspec(dllexport) long __stdcall
ni54xx_GenerateWaveform(unsigned long sessionHandle,
unsigned long waveType,
double amplitudeInVolts,
double frequencyInHz );
Purpose
Causes the device to output a DC voltage or a sine wave with a specified amplitude and
frequency.
Parameters
Name
Description
sessionHandle
The handle of the calibration session for the device, created
with a call to
ni54xx_CalStart
.
waveType
The type of waveform to generate
NI54XX_DC
or
NI54XX_SINE
.
amplitudeInVolts
The amplitude of the waveform (in volts), this is the
amplitude into an unterminated (high impedance) load.
frequencyInHz
The frequency of the waveform (in hertz) ignored for the
DC case, of course.