Sending a write command to the serial port simultaneously during a read operation.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Swarnava Pramanik
am 24 Jun. 2016
Bearbeitet: Walter Roberson
am 25 Jun. 2016
Swarnava Pramanik
am 25 Jun. 2016
Bearbeitet: Swarnava Pramanik
am 25 Jun. 2016
Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!