EasyManuals Logo
Home>pico Technology>Test Equipment>PicoScope 2200A Series

pico Technology PicoScope 2200A Series Programmer's Guide

pico Technology PicoScope 2200A Series
55 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #44 background imageLoading...
Page #44 background image
API Functions48
Copyright © 2006–2016 Pico Technology Ltd. All rights reserved.ps2000pg.en r11
5.29
ps2000_set_sig_gen_arbitrary
int16_t ps2000_set_sig_gen_arbitrary
(
int16_t handle,
int32_t offsetVoltage,
uint32_t pkToPk,
uint32_t startDeltaPhase,
uint32_t stopDeltaPhase,
uint32_t deltaPhaseIncrement,
uint32_t dwellCount,
uint8_t *arbitraryWaveform,
int32_t arbitraryWaveformSize,
PS2000_SWEEP_TYPE sweepType,
uint32_t sweeps
)
This function programs the signal generator to produce an arbitrary waveform.
The arbitrary waveform generator uses direct digital synthesis (DDS). It maintains a
32-bit phase accumulator that indicates the present location in the waveform. The top
bits of the phase accumulator are used as an index into a buffer containing the
arbitrary waveform. The remaining bits act as the fractional part of the index, enabling
high-resolution control of output frequency and allowing the generation of lower
frequencies.
The generator steps through the waveform by adding a deltaPhase value between 1
and phaseAccumulatorSize-1 to the phase accumulator every ddsPeriod (1 /
ddsFrequency). If the deltaPhase is constant, the generator produces a waveform at a
constant frequency that can be calculated as follows:
( ) ( )
outputFrequency =
ddsFrequency ×
deltaPhase
phaseAccumulatorSize
×
awgBufferSize
arbitraryWaveformSize
where:
outputFrequency = repetition rate of the complete arbitrary waveform
ddsFrequency = clock rate of phase accumulator (not the same as the
DAC update rate)
deltaPhase = user-specified delta phase value
phaseAccumulatorSize = 2
32
for all models
awgBufferSize = AWG buffer size
arbitraryWaveformSize = length in samples of the user-defined waveform
Parameter
Value
phaseAccumulatorSize
2
32
awgBufferSize
4096
ddsFrequency
48 MHz
ddsPeriod (= 1/ddsFrequency)
20.833 ns (= 1/48 MHz)
It is also possible to sweep the frequency by continually modifying the deltaPhase.
This is done by setting up a deltaPhaseIncrement that the oscilloscope adds to the
deltaPhase at intervals specified by dwellCount.

Other manuals for pico Technology PicoScope 2200A Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the pico Technology PicoScope 2200A Series and is the answer not in the manual?

pico Technology PicoScope 2200A Series Specifications

General IconGeneral
Brandpico Technology
ModelPicoScope 2200A Series
CategoryTest Equipment
LanguageEnglish

Related product manuals