Redpitaya RED PITAYA, OPEN SOURCE LAB RED Pitaya V 1.1 Datenbogen
Produktcode
RED Pitaya V 1.1
25
6 Red Pitaya command line utilities
6.1.1 Signal generator utility
The Red Pitaya signal generator can be controlled through the command line utility
(/opt/bin/generate), but be aware it interferes with the GUI based Generator application.
Usage instructions (see also Table 7):
(/opt/bin/generate), but be aware it interferes with the GUI based Generator application.
Usage instructions (see also Table 7):
redpitaya>generate
Usage: generate channel amplitude frequency <type>
Usage: generate channel amplitude frequency <type>
channel Channel to generate signal on [1, 2].
amplitude Peak-to-peak signal amplitude in Vpp [0.0 - 2.0].
frequency Signal frequency in Hz [0 - 1.0e+07].
type Signal type [sine, sqr, tri].
Table 7: Parameters of Signal generator utility.
Name
Type
Range
Description
channel
int
1 / 2
Output channel selection
amplitude
float
0 – 2 [V]
Maximal output signal is 2 V peak to
peak
peak
freq
float
0 – 10000000 [Hz]
Frequency can be generated in the range
from 0 Hz (DC signal) up to 10 MHz
from 0 Hz (DC signal) up to 10 MHz
<type>
string
sine / sqr / tri
Optional parameter. Signal shape type
(sine – sine wave signal, sqr – square
signal, tri – triangular signal). If
omitted, sine is used.
(sine – sine wave signal, sqr – square
signal, tri – triangular signal). If
omitted, sine is used.
The output can be disabled by setting the amplitude parameter to zero.
Example (2 Vpp square wave signal with 1 MHz on channel 1):
redpitaya>
generate 1 2 1000000 sqr
Note that the signal generator output impedance is 50 Ω. If user wants to connect the output of the
signal generator (OUT1, OUT2) to the Red Pitaya input (ADC1, ADC2), 50 Ω terminations should
be connected at the Red Pitaya ADC inputs through the T-type connector.
signal generator (OUT1, OUT2) to the Red Pitaya input (ADC1, ADC2), 50 Ω terminations should
be connected at the Red Pitaya ADC inputs through the T-type connector.
Note: Command line utilities must not be used in parallel with a WEB application.