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.
5 件のコメント
その他の回答 (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!