MATLAB ヘルプ センター
Determine if HDA client is connected to server
isConnected(hdaObj)
isConnected(hdaObj) returns true if the OPC HDA client object specified in hdaObj is connected to an OPC HDA server, and false otherwise.
hdaObj
true
false
If hdaObj is an array, isConnected returns an array of true or false values that is of the same size as hdaObj.
isConnected
example
collapse all
Create an HDA client for Matrikon™ Simulation Server and connect to the server.
hdaObj = opchda('localhost', 'Matrikon.OPC.Simulation'); connect(hdaObj);
Check the status of the connection.
isClientConnected = isConnected(hdaObj)
isClientConnected = logical 1
opchda
OPC client object, specified as an opchda object or an array of opchda objects.
Example: Obj = opchda(_)
Obj = opchda(_)
Introduced in R2011a
connect
disconnect
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
ヨーロッパ
アジア太平洋地域
最寄りの営業オフィスへのお問い合わせ