USER BASED INPUT OF IP ADDRESS BOX IN MATLAB APPDESIGNER

5 ビュー (過去 30 日間)
Kartick
Kartick 2023 年 1 月 10 日
編集済み: Kartick 2023 年 1 月 12 日
I am conceptualizing an App using appdesigner having a user based input of IP address. The IP address when filled and push button when pressed will ping the address fed. I am unable to generate the IP address field. I am using following code for pinging:
command='ping 192.168.100.1'
[status,cmdout]=system(command)
cmdout will generate the result as char which will be arranged(as per need) and displayed as result in text box. I wish to get text box for entry of IP address.
I have tried following examples provided under mathworks.com
and
neither of above works for my case
  1 件のコメント
Kartick
Kartick 2023 年 1 月 12 日
編集済み: Kartick 2023 年 1 月 12 日
I have done some trials and errors and finally found some systems that is working:
prompt='Enter the IP Address: '
str=input(prompt,'s')
[status,cmdout]=system(['ping ' str])
When the above code in RUN, its ask user to to input IP address and the cmdout is the result which I am getting. I also have prepared custom UI component for IP entry field.
However I am unable to make it happen i.e App using appdesigner having a user based input of IP address which when fed with IP address and push button when pressed will ping the address.
Thanks in advance!

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by