User Manual

PicoScope 4000 Series Programmer's Guide 77
Copyright © 2008-2011 Pico Technology Ltd. All rights reserved. ps4000pg.en
sweepType, specifies whether the frequency should sweep from
startFrequency to stopFrequency, or in the opposite
direction, or repeatedly reverse direction. Use one of these values
of the enumerated type enPS4000SweepType:
PS4000_UP
PS4000_DOWN
PS4000_UPDOWN
PS4000_DOWNUP
operationType, configures the white noise/PRBS
generator:
PS4000_OP_NONE: white noise/PRBS output disabled. The
waveform is defined by the waveType argument.
PS4000_WHITENOISE: the signal generator produces white
noise and ignores all settings except offsetVoltage and
pkTopk.
PS4000_PRBS: the signal generator produces a PRBS
(pseudo-random binary sequence).
shots, the number of cycles of the waveform to be produced after
a trigger event. If this is set to a non-zero value (1 <= shots <=
MAX_SWEEPS_SHOTS), then sweeps must be set to zero.
sweeps, the number of times to sweep the frequency after a
trigger event, according to sweepType. If this is set to a non-
zero value (1 <= sweeps <= MAX_SWEEPS_SHOTS), then shots
must be set to zero.
triggerType, the type of trigger that will be applied to the signal
generator. See the table of triggerType values below.
triggerSource, the source that will trigger the signal generator.
See the table of triggerSource values below. If a trigger source
other than SIGGEN_NONE is specified, then either shots or
sweeps, but not both, must be set to a non-zero value.
extInThreshold, an ADC count for use when the trigger source
is SIGGEN_EXT_IN. If the EXT input is also being used as the
scope trigger then the same ADC count must be specified in both
places, otherwise a warning will be issued.
Returns
0: if successful.
Error code: if failed.
waveType values
PS4000_SINE
sine wave
PS4000_SQUARE
square wave
PS4000_TRIANGLE
triangle wave
PS4000_RAMP_UP
rising sawtooth
PS4000_RAMP_DOWN
falling sawtooth
PS4000_DC_VOLTAGE
DC voltage