Sending a write command to the serial port simultaneously during a read operation.
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Swarnava Pramanik
le 24 Juin 2016
Modifié(e) : Walter Roberson
le 25 Juin 2016
Swarnava Pramanik
le 25 Juin 2016
Modifié(e) : Swarnava Pramanik
le 25 Juin 2016
Réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!