[app designer] Create callback function when a variable changed.

조회 수: 4 (최근 30일)
Jae-Hee Park
Jae-Hee Park 2021년 12월 15일
답변: Jae-Hee Park 2021년 12월 21일
Hello I am here to find help
I want to make a simple app which containing a Lamp in app designer.
That Lamp turns green when this app connected with other app by TCP/IP.
And when TCP/IP connection is disconnected, the Lamp turns to be red.
I think it is possible by some kind of callback function called when TCP/IP connection check value is changed.
How can I make it?
  댓글 수: 4
Geoff Hayes
Geoff Hayes 2021년 12월 20일
@Jae-Hee Park - you might be able to use the ErrorOccurredFcn callback to capture if there is an error and from that you might be able to assume that the connection is lost. I couldn't see a function that might check the state of the connection. There might be one, but it wasn't obvious to me.

댓글을 달려면 로그인하십시오.

채택된 답변

Jae-Hee Park
Jae-Hee Park 2021년 12월 21일

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by