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에서 Interactive Control and Callbacks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!