Acquire data from Matlab

Just about everything about Red Pitaya
Post Reply
mihai
Posts: 1
Joined: Fri Oct 03, 2014 1:52 pm

Acquire data from Matlab

Post by mihai » Fri Oct 03, 2014 2:01 pm

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

Zumi
Posts: 2
Joined: Thu Oct 09, 2014 1:38 pm

Re: Acquire data from Matlab

Post by Zumi » Thu Oct 09, 2014 1:45 pm

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

Post Reply
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 3 guests