Redpitaya RED PITAYA, OPEN SOURCE LAB RED Pitaya V 1.1 データシート
製品コード
RED Pitaya V 1.1
30
Figure 20: File copy destination.
6.1.4 Alternative access to the instrument
Apart from the usual WEB access, Red Pitaya can be accessed from computer using standard
utilities such as SCP, SSH. Accessing Red Pitaya from Matlab® can be done through plink
interface. Plink (PuTTy Link) is a free and open-source command-line network connection tool that
can be downloaded from official PuTTY page:
<
utilities such as SCP, SSH. Accessing Red Pitaya from Matlab® can be done through plink
interface. Plink (PuTTy Link) is a free and open-source command-line network connection tool that
can be downloaded from official PuTTY page:
<
6.1.4.1 Signal generator from Matlab
The generator control can be done by executing the following command:
unix('plink -l <username> -pw <password> <IP_address> /opt/bin/generate
<channel> <amplitude> <frequency> <type>');
<channel> <amplitude> <frequency> <type>');
The example below presents the setting of the Red Pitaya generator from a Linux PC.
unix('plink -l root -pw root 10.0.1.221 “/opt/bin/generate 1 2 500000 sine”');
The example below presents the setting of the Red Pitaya generator from a Windows PC.
dos('plink -l root -pw root 10.0.1.221 “/opt/bin/generate 1 2 500000 sine”');
6.1.4.2 Signal acquisition from Matlab
The signal acquisition can be done by executing the following command:
file=['plink -l <username> -pw <password> <IP_address> /opt/bin/acquire <size>
<dec>'];
<dec>'];
The example below presents the acquisition of the signals from Red Pitaya to a Linux PC.