Sending a write command to the serial port simultaneously during a read operation.
1 view (last 30 days)
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
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!