
PicoScope 3000A Series Prog rammer's Guide
87
Copyright © 2011-2013 Pico Technology Limited. All rights reserved.
ps3000abpg.en r9
2.12.51 ps3000aSetSigGenBuiltIn
PICO_STATUS ps3000aSetSigGenBuiltIn
(
short handle,
long offsetVoltage,
unsigned long pkToPk,
PS3000A_WAVE_TYPE waveType,
float startFrequency,
float stopFrequency,
float increment,
float dwellTime,
PS3000A_SWEEP_TYPE sweepType,
PS3000A_EXTRA_OPERATIONS operation,
unsigned long shots,
unsigned long sweeps,
PS3000A_SIGGEN_TRIG_TYPE triggerType,
PS3000A_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 models
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.
Note that if the signal voltages described by the combination of
offsetVoltage
and
pkToPk
extend outside the voltage range of the
signal generator, the output waveform will be clipped.
waveType,
the type of waveform to be generated.
PS3000A_SINE
sine wave
PS3000A_SQUARE
square wave
PS3000A_TRIANGLE
triangle wave
PS3000A_DC_VOLTAGE
DC voltage
The following
waveTypes
apply to B and MSO models only.
PS3000A_RAMP_UP
rising sawtooth
PS3000A_RAMP_DOWN
falling sawtooth
PS3000A_SINC
sin (x)/x
PS3000A_GAUSSIAN
Gaussian
PS3000A_HALF_SINE
half (full-wave rectified) sine
startFrequency,
the frequency that the signal generator will
initially produce. For allowable values see
and related values.
stopFrequency,
the frequency at which the sweep reverses
direction or returns to the initial frequency