Main Content


Install and register OPC Foundation core components



opcregister installs the OPC Foundation core components so that OPC Toolbox™ software 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.


You must clear any OPC Toolbox objects that you have previously created in this MATLAB® session before you can run opcregister. If you attempt to run opcregister and OPC Toolbox 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,


collapse all

Install the OPC Foundation core components on your local workstation.


Remove the OPC Foundation core components on your local workstation.

Introduced before R2006a