Main Content

opcregister

Install and register OPC Foundation core components

Description

example

opcregister installs the OPC Foundation core components so that the toolbox is able to communicate with OPC servers.

opcregister('repair') repairs an existing OPC Foundation core components installation. Use this option if you are experiencing problems querying hosts with the opcserverinfo function.

opcregister('remove') removes all OPC Foundation core components from your workstation. Use this option if you no longer need to access any servers using OPC.

opcregister(..., '-silent') runs the selected option without prompting you for confirmation, and without showing any progress dialog. Note that your machine might be restarted without prompting you if you choose this option. If you are concerned about restarting your machine, do not use the '-silent' option.

Note

You must clear any OPC objects that you have previously created in this MATLAB® session before you can run opcregister. If you attempt to run opcregister and any OPC objects already exist, an error is generated. Use opcreset to clear objects from the MATLAB session.

OPC Foundation core components are redistributed under license from the OPC Foundation, https://opcfoundation.org.

Examples

collapse all

Install the OPC Foundation core components on your local workstation.

opcregister

Remove the OPC Foundation core components on your local workstation.

opcregister('remove')

Version History

Introduced before R2006a