For TCP/IP connection in MatLab there are some very good examples. However, these require the Instrument Control Toolbox from Mathworks. In order to overcome this, I established a "raw" plink connection with port 5000 (the same way it is explained for ssh connection http://wiki.redpitaya.com/index.php?tit ... plications).
Using PuTTY it works fine. I just need to type in the scpi command (btw: the scpi-server is running from start up).
In MatLab, my code works only if I create a txt file beforehand, from which I read the command I want to transmit.
The working code reads:
Code: Select all
command=['plink -raw 192.168.1.100 -P 5000 <FileWithCommand.txt'];
[c,data]=dos(command);
BR
Georg