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
Acquire data from Matlab
-
- Posts: 2
- Joined: Thu Oct 09, 2014 1:38 pm
Re: Acquire data from Matlab
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
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
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie
Who is online
Users browsing this forum: No registered users and 47 guests