Sending a write command to the serial port simultaneously during a read operation.
Show older comments
Hi,
I'm interfacing MAX10 fpga development kit with matlab. I want to send a command from the matlab to the board at the same time when read operation is taking place in the matlab from the buffer. I'm attaching the code:
if( strcmp(stopCondition , 'STOP') == 1 )
% fprintf(s, stopCondition);
disp('STOP requested');
fprintf(s, stopCondition);
end
When I'm using the above code the Matlab is not able to write the "STOP" command to the buffer until whole read operation is completed. But I'm acquiring data continuously so I need to send the "STOP" command in the middle of the read operation. Can anyone please kindly help me resolve this issue ?
3 Comments
Walter Roberson
on 24 Jun 2016
You do not show how you coded the read operation. There are a couple of different ways to read, so we will need to see your code.
Swarnava Pramanik
on 24 Jun 2016
Edited: Walter Roberson
on 25 Jun 2016
Swarnava Pramanik
on 25 Jun 2016
Edited: Swarnava Pramanik
on 25 Jun 2016
Answers (0)
Categories
Find more on MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!