Reading ASCII values from serial COM port
2 次查看(过去 30 天)
显示 更早的评论
Hi all I tried reading ASCII values from barcode scanner(through serial port) into ML using the following program
delete(instrfind)
s = serial('COM5');
fopen(s)
[tline1,count1,msg1] = fgetl(s)
fclose(s)
but its not working
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/192654/image.png)
Can you help me in resolving the issue.
I know that the barcode code scanner communicates using ASCII.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 String Parsing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!