User manual
Programming with the PicoScope 6000 Series76
Copyright © 2009-2013 Pico Technology Ltd. All rights reserved.ps6000pg.en r9
Arguments
sweepType, whether the frequency will sweep from startFrequency to
stopFrequency, or in the opposite direction, or repeatedly reverse direction.
Use one of these constants:
PS6000_UP
PS6000_DOWN
PS6000_UPDOWN
PS6000_DOWNUP
operation, selects periodic signal, white noise or PRBS:
PS6000_ES_OFF (0)
produces the waveform specified by waveType.
PS6000_WHITENOISE (1)
produces white noise and ignores all settings
except offsetVoltage and pkTopk.
PS6000_PRBS (2)
produces a pseudo-random binary sequence
(PRBS) and ignores all settings except
offsetVoltage and pkTopk.
shots, the number of cycles of the waveform to be produced after a trigger event. If
non-zero (from 1 to MAX_SWEEPS_SHOTS), then sweeps must be zero.
sweeps, the number of times to sweep the frequency after a trigger event,
according to sweepType. If non-zero (from 1 to MAX_SWEEPS_SHOTS), then
shots must be zero.
triggerType, the type of trigger that will be applied to the signal generator:
PS6000_SIGGEN_RISING
trigger on rising edge
PS6000_SIGGEN_FALLING
trigger on falling edge
PS6000_SIGGEN_GATE_HIGH
run while trigger is high
PS6000_SIGGEN_GATE_LOW
run while trigger is low
triggerSource, the source that will trigger the signal generator:
PS6000_SIGGEN_NONE
run without waiting for trigger
PS6000_SIGGEN_SCOPE_TRIG
use scope trigger
PS6000_SIGGEN_AUX_IN
use AUX input
PS6000_SIGGEN_SOFT_TRIG
wait for software trigger provided by
ps6000SigGenSoftwareControl
PS6000_SIGGEN_TRIGGER_RAW
reserved
If a trigger source other than P6000_SIGGEN_NONE is specified, then either
shots or sweeps, but not both, must be non-zero.
extInThreshold, not used.
Returns
PICO_OK
PICO_INVALID_HANDLE
PICO_SIG_GEN_PARAM
PICO_SHOTS_SWEEPS_WARNING
PICO_NOT_RESPONDING
PICO_WARNING_AUX_OUTPUT_CONFLICT
PICO_WARNING_EXT_THRESHOLD_CONFLICT
PICO_NO_SIGNAL_GENERATOR
PICO_SIGGEN_OFFSET_VOLTAGE
PICO_SIGGEN_PK_TO_PK
PICO_SIGGEN_OUTPUT_OVER_VOLTAGE
PICO_DRIVER_FUNCTION
PICO_SIGGEN_WAVEFORM_SETUP_FAILED
PICO_NOT_RESPONDING