GUI and COM port interface
2 次查看(过去 30 天)
显示 更早的评论
Hi, I have a question. May I can I know how to communicate serial com port with GUI push button? For eg: s=serial('COM15')into the GUI push button so when I clicked on it will directly connect to the com port.Thanks in advance.
0 个评论
采纳的回答
Walter Roberson
2011-3-8
Open the serial port and save the resulting object in to a convenient location (such as in a handles structure), and then in the callback for the object, retrieve the stored object and use it to read from or write to.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Use COM Objects in MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!