User Manual
PicoScope 4000 Series Programmer's Guide 73
Copyright © 2008-2011 Pico Technology Ltd. All rights reserved. ps4000pg.en
4.10.50
ps4000SetSigGenArbitrary
PICO_STATUS ps4000SetSigGenArbitrary (
short handle,
long offsetVoltage,
unsigned long pkToPk,
unsigned long startDeltaPhase,
unsigned long stopDeltaPhase,
unsigned long deltaPhaseIncrement,
unsigned long dwellCount,
short * arbitraryWaveform,
long arbitraryWaveformSize,
SWEEP_TYPE sweepType,
PS4000_OPERATION_TYPES operationType,
INDEX_MODE indexMode,
unsigned long shots,
unsigned long sweeps,
SIGGEN_TRIG_TYPE triggerType,
SIGGEN_TRIG_SOURCE triggerSource,
short extInThreshold
)
This functions instructs the signal generator to produce an arbitrary waveform.
The arbitrary waveform generator uses direct digital synthesis (DDS). It maintains a
32-bit phase counter that indicates the present location in the waveform. The top 13
bits of the counter are used as an index into a buffer containing the arbitrary
waveform.
The generator steps through the waveform by adding a "delta phase" between 1 and
2
32
-1 to the phase counter every 50 ns. If the delta phase is constant, then the
generator produces a waveform at a constant frequency. It is also possible to sweep
the frequency by continually modifying the delta phase. This is done by setting up a
"delta phase increment" which is added to the delta phase at specified intervals.
Applicability
PicoScope 4226, 4227 and 4262 only
Arguments
handle, the handle of the required oscilloscope
offsetVoltage, the voltage offset, in microvolts, to be applied
to the waveform
pkToPk, the peak-to-peak voltage, in microvolts, of the waveform
signal
startDeltaPhase, the initial value added to the phase counter
as the generator begins to step through the waveform buffer
stopDeltaPhase, the final value added to the phase counter
before the generator restarts or reverses the sweep
deltaPhaseIncrement, the amount added to the delta phase
value every time the dwellCount period expires. This determines
the amount by which the generator sweeps the output frequency in
each dwell period.