I'm trying to acquire values from a microcontroller using the serial port. However, I'm facing a strange bug!
when I try to run the program for the first time it works and when I try to run it again it gives me an error saying that cannot open the port! But if I close matlab and open it again and run the program it works for the first time only and then same problem arises!
Can anyone help me please ?
Thanks in advance
5 Comments
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/489171-serial-port-opening-problem#comment_763526
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/489171-serial-port-opening-problem#comment_763526
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/489171-serial-port-opening-problem#comment_763531
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/489171-serial-port-opening-problem#comment_763531
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/489171-serial-port-opening-problem#comment_763540
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/489171-serial-port-opening-problem#comment_763540
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/489171-serial-port-opening-problem#comment_763543
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/489171-serial-port-opening-problem#comment_763543
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/489171-serial-port-opening-problem#comment_763784
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/489171-serial-port-opening-problem#comment_763784
Sign in to comment.