Sending a write command to the serial port simultaneously during a read operation.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Swarnava Pramanik
el 24 de Jun. de 2016
Editada: Walter Roberson
el 25 de Jun. de 2016
Swarnava Pramanik
el 25 de Jun. de 2016
Editada: Swarnava Pramanik
el 25 de Jun. de 2016
Respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!