Redpitaya RED PITAYA, OPEN SOURCE LAB RED Pitaya V 1.1 数据表
产品代码
RED Pitaya V 1.1
26
6.1.2 Signal acquisition utility
The signal from Red Pitaya can be acquired through a command line utility (/opt/bin/acquire). It
will return raw samples from the ADC buffer to standard output.
Usage instructions (see also Table 8):
will return raw samples from the ADC buffer to standard output.
Usage instructions (see also Table 8):
redpitaya> acquire
Usage: acquire size <dec>
Usage: acquire size <dec>
size Number of samples to acquire [0 - 16384].
dec Decimation [1,8,64,1024,8192,16384] (default=1).
Table 8: Parameters of data acquisition tool.
Name
Type
Range
Description
size
int
0 – 16384
The number of samples to read.
<dec>
int
1, 8, 64, 1024, 8192,
16384
16384
Optional parameter. It specifies the
decimation factor. If omitted, 1 is used
(no decimation).
decimation factor. If omitted, 1 is used
(no decimation).
Acquire utility will return the requested number of samples with decimation factor for both input
channels (column 1 = channel 1; column 2 = channel 2).
Example (acquire 1024 samples with decimation 8):
redpitaya>
acquire 1024 8
6.1.3 Saving data buffers
It is recommended to use an NFS share to store any temporary data (e.g. the measured signals using
the acquire utility). Use a standard mount command to mount your NFS share (example):
the acquire utility). Use a standard mount command to mount your NFS share (example):
redpitaya>
mount -o nolock <ip_address>:/<path> /mnt
The /opt file-system on Red Pitaya, representing the SD card, is mounted read-only. To save the
data locally on Red Pitaya redirect the acquisition to a file in the /tmp directory. The /tmp directory
resides in RAM and is therefore volatile (clears on reboot).
data locally on Red Pitaya redirect the acquisition to a file in the /tmp directory. The /tmp directory
resides in RAM and is therefore volatile (clears on reboot).
redpitaya>
acquire 1024 8 > /tmp/my_local_file
Alternatively, save the data directly to the NFS mount point: