Skip to Main Content Skip to Search
Product Documentation

Getting Command-Line Function Help

To get command-line function help, you can use the MATLAB help function. For example, to get help for the opcserverinfo function, type

help opcserverinfo

The HDA functions are accessed through object methods. For this reason, if help is needed on a particular HDA function, the opc.hda prefix must be used. For example to get help on the HDA equivalent of the opcserverinfo function mentioned above one would type

help opc.hda.getServerInfo

OPC Toolbox software also provides "overloaded" versions of several MATLAB functions. That is, it provides toolbox-specific implementations of these functions using the same function name.

For example, the toolbox provides an overloaded version of the isvalid function. If you type

help isvalid

you get help for the MATLAB Timer object version of this function. You can determine if a function is overloaded by examining the last section of the help. For isvalid, the help contains the following overloaded versions (not all are shown).

Overloaded methods
help serial/isvalid.m
help instrument/isvalid.m.
.
.
.
help opcroot/isvalid.m

To obtain help on the toolbox version of this function, type

help opcroot/isvalid

To avoid having to specify which overloaded version you want to view, use the opchelp function.

opchelp isvalid

You can also use this function to get help on OPC Toolbox object properties.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS