Red Pitaya

From Quantum kot
Jump to navigation Jump to search

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.
    1. Copy your file to RP: scp program.c root@192.168.0.18:/root/Programs/
    2. Connect to redPitaya through ssh: ssh root@192.168.0.18
    3. Copy the MakeFile from /RedPitaya/Examples/C to your folder: cp Makefile ~/Programs/
    4. From your folder compile the file: make program
    5. Run program by executing it with path to Red Pitay libraries: LD_LIBRARY_PATH=/opt/redpitaya/lib ./program
  2. If you want to download program from RedPitay to your home folder on your computer:
    1. scp root@ip:/Programs/program.c ~/

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.