User manual
Writing your own software26
Copyright © 2010-2011 Pico Technology Ltd. All rights reserved.usbdrdaqpg.en
3.5.17
UsbDrDaqSetSigGenBuiltIn
PICO_STATUS UsbDrDaqSetSigGenBuiltIn(
short handle,
long offsetVoltage,
unsigned long pkToPk,
short frequency,
USB_DRDAQ_WAVE waveType
)
This function sets the arbitrary waveform generator using standard waveform types.
Arguments:
handle: handle returned from UsbDrDaqOpenUnit or
UsbDrDaqOpenUnitProgress
offsetVoltage: The offset voltage in microvolts. The offset voltage
must be in the range -1.5 V to 1.5 V.
pkToPk: The peak-to-peak voltage in microvolts. The maximum
allowed is 3 V.
frequency: Frequency in hertz. The maximum allowed frequency is
20 kHz.
waveType: An enumerated data type that has the following values,
corresponding to standard waveforms:
USB_DRDAQ_SINE,
USB_DRDAQ_SQUARE,
USB_DRDAQ_TRIANGLE,
USB_DRDAQ_RAMP_UP,
USB_DRDAQ_RAMP_DOWN,
USB_DRDAQ_DC
Returns:
PICO_OK
PICO_NOT_FOUND
PICO_NOT_RESPONDING
PICO_INVALID_PARAMETER
11
23
37
37
37
37