Difference between revisions of "Red Pitaya"
Jump to navigation
Jump to search
| Line 17: | Line 17: | ||
==How to compile C program== | ==How to compile C program== | ||
# You have created file program.c on your computer. | # 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'' | |
| + | # From your computer | ||
==Control== | ==Control== | ||
Revision as of 23:50, 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
- 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
- From your computer
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.