User manual

PicoScope 6000 Series Programmer's Guide 75
Copyright © 2009-2013 Pico Technology Ltd. All rights reserved. ps6000pg.en r9
3.9.44
ps6000SetSigGenBuiltIn
PICO_STATUS ps6000SetSigGenBuiltIn
(
short handle,
long offsetVoltage,
unsigned long pkToPk
short waveType
float startFrequency,
float stopFrequency,
float increment,
float dwellTime,
PS6000_SWEEP_TYPE sweepType,
PS6000_EXTRA_OPERATIONS operation,
unsigned long shots,
unsigned long sweeps,
PS6000_SIGGEN_TRIG_TYPE triggerType,
PS6000_SIGGEN_TRIG_SOURCE triggerSource,
short extInThreshold
)
This function sets up the signal generator to produce a signal from a list of built-in
waveforms. If different start and stop frequencies are specified, the device will sweep
either up, down or up and down.
Applicability
All modes
Arguments
handle, the handle of the required device
offsetVoltage, the voltage offset, in microvolts, to be applied to the waveform
pkToPk, the peak-to-peak voltage, in microvolts, of the waveform signal
waveType, the type of waveform to be generated.
PS6000_SINE
sine wave
PS6000_SQUARE
square wave
PS6000_TRIANGLE
triangle wave
PS6000_RAMP_UP
rising sawtooth
PS6000_RAMP_DOWN
falling sawtooth
PS6000_SINC
sin (x)/x
PS6000_GAUSSIAN
Gaussian
PS6000_HALF_SINE
half (full-wave rectified) sine
PS6000_DC_VOLTAGE
DC voltage
PS6000_WHITE_NOISE
white noise
startFrequency, the frequency that the signal generator will initially produce. For
allowable values see PS6000_SINE_MAX_FREQUENCY and related values.
stopFrequency, the frequency at which the sweep reverses direction or returns to
the initial frequency
increment, the amount of frequency increase or decrease in sweep mode
dwellTime, the time for which the sweep stays at each frequency, in seconds