Difference between revisions of "Red Pitaya"

From Quantum kot
Jump to navigation Jump to search
Line 15: Line 15:
 
* password: root
 
* password: root
 
* copy program into the memory( your computer): scp file_name root@IP:/root/
 
* copy program into the memory( your computer): scp file_name root@IP:/root/
 +
==How to compile C program==
 +
# You have created file program.c on your computer.
 +
** Copy your file to RP: ''scp program.c root@192.168.0.18:/root/Programs/''
 +
** Connect to redPitaya through ssh: ''ssh root@192.168.0.18''
 +
** Copy the MakeFile from /RedPitaya/Examples/C to your folder: ''cp Makefile ~/Programs/''
 +
** From your folder compile the file: ''make program''
  
 
==Control==
 
==Control==

Revision as of 23:47, 1 September 2019

You can connect to a server STEM Labor create your own see - Starting SCPI server manually.

Examples of control are provided here, where they use MatLab/Python/C/SciLab/LabView. All commands are found on the same page.

Hardware is described here

Our version STEM122-16SDR(V1r1)

How to connect

  1. Make them in the same network
  2. option
    • webbrowser open a new tab and type: RP_F07B7D.local
    • development-> scpi server->run
  1. SSH
  • konsole: ssh root@IP
  • password: root
  • copy program into the memory( your computer): scp file_name root@IP:/root/

How to compile C program

  1. You have created file program.c on your computer.
    • Copy your file to RP: scp program.c root@192.168.0.18:/root/Programs/
    • Connect to redPitaya through ssh: ssh root@192.168.0.18
    • Copy the MakeFile from /RedPitaya/Examples/C to your folder: cp Makefile ~/Programs/
    • From your folder compile the file: make program

Control

We want it to control digital potentiometers and digital switches.

AD5124

Consists of 4 digitally controlled resistors RDACs. RDAC register contents define position of wiper. Only SP interface for the thoughhole.