Difference between revisions of "Red Pitaya"
Jump to navigation
Jump to search
| Line 22: | Line 22: | ||
## From your folder compile the file: ''make program'' | ## From your folder compile the file: ''make program'' | ||
## Run program by executing it with path to Red Pitay libraries: ''LD_LIBRARY_PATH=/opt/redpitaya/lib ./program'' | ## Run program by executing it with path to Red Pitay libraries: ''LD_LIBRARY_PATH=/opt/redpitaya/lib ./program'' | ||
| − | # | + | # If you want to download program from RedPitay to your home folder on your computer: |
| + | ## scp root@ip:/Programs/program.c ~/ | ||
==Control== | ==Control== | ||
Latest revision as of 17:46, 25 December 2020
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
- Make them in the same network
- option
- webbrowser open a new tab and type: RP_F07B7D.local
- development-> scpi server->run
- 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
- 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
- Run program by executing it with path to Red Pitay libraries: LD_LIBRARY_PATH=/opt/redpitaya/lib ./program
- If you want to download program from RedPitay to your home folder on your computer:
- 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.