Disconnect VI
- Updated2025-09-30
- 2 minute(s) read
Owning Palette: OPC UA Client VIs
Requires: OPC UA Toolkit
Disconnects an OPC UA client from an OPC UA server. The OPC UA client automatically deletes all the subscriptions before disconnecting from the OPC UA server.
Example
![]() |
OPC UA client refnum in specifies the reference for the OPC UA client. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
timeout specifies the maximum time, in milliseconds, that this VI waits to get a response from the OPC UA server. The default is 5000. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Example
Refer to the OPC UA Demo.lvproj in the labview\examples\Data Communication\OPCUA directory for an example of using the Disconnect VI.



