Page 1 of 1

Acquire data from Matlab

Posted: Fri Oct 03, 2014 2:01 pm
by mihai
Hello!

I am trying to generate and acquire data with Matlab with this board and it doesn't work using " dos('plink -l root -pw root 192.168.0.3 “/opt/bin/generate 1 2 500000 sine”');". This is the error "sh: “/opt/bin/generate: not found".
It works on the serial port but I want to do it using the dos command.
Does anybody know how to do this?


Best regards,
Mihai

Re: Acquire data from Matlab

Posted: Thu Oct 09, 2014 1:45 pm
by Zumi
Hello,

you can try with this..


% If you have plink installed in other location you must enter path to it.
% For example C:/Desktop/plink

command=['C:\plink -l root -pw root 192.168.94.134 "/opt/bin/acquire 16000"'];
[c,data]=dos(command);
data = str2num(data);

A_response_signal=data(:,1);
U_in_1=((A_response_signal'*2)/16384)' % Voltage signal of U_IN_1

plot(U_in_1)

For more information go to: (end of page)

http://wiki.redpitaya.com/index.php?title=User_Manual

Regards