This release of OPC Toolbox™ includes support for the OPC Unified Architecture (UA) standard protocol.
For information on getting started with OPC UA servers, nodes, and clients, see Unified Architecture.
Note OPC UA support is available only for 64-bit Windows® operating systems.
The app known as OPC Client in past releases is now called the
OPC Data Access Explorer.
a new corresponding command-line function that opens the app programmatically.
opctool continues to open this app.
opchdafunction for creating an OPC HDA client object
A new function,
opchda, creates an OPC
HDA client object in MATLAB. For more information on this function,
The troubleshooting utility
been enhanced to support OPC HDA as well as OPC DA functionality.
Two new troubleshooting utilities are provided specifically for OPC HDA and OPC DA:
For R2012a, error and warning message identifiers have changed in OPC Toolbox.
If you have scripts or functions that use message identifiers
that changed, you must update the code to use the new identifiers.
Typically, message identifiers are used to turn off specific warning
messages, or in code that uses a
and performs an action based on a specific error identifier.
To determine the identifier for a warning, run the following command just after you see the warning:
[MSG,MSGID] = lastwarn;
This command saves the message identifier to the variable
To determine the identifier for an error, run the following commands just after you see the error:
exception = MException.last; MSGID = exception.identifier;
Tip Warning messages indicate a potential issue with your code. While you can turn off a warning, a suggested alternative is to change your code so that it runs without warnings.
This release supports OPC Toolbox in 64-bit MATLAB®.
Before using OPC Toolbox with 64-bit MATLAB for the
first time, you must run
install the 64-bit OPC Core Components. This applies even if you have
previously installed the OPC Core Components, either through 32-bit MATLAB or
installation of an OPC Server on the local host. Failure to install
the 64-bit OPC Core Components that ship with this version of OPC Toolbox can
result in local OPC servers being unavailable to OPC Toolbox.
OPC Toolbox now supports OPC Historical Data Access (OPC HDA) specification version 1.2. This allows you to access and visualize historical process data from an OPC Historical Data Access server (commonly referred to as an historian).
Key features of OPC HDA support are:
You can browse networks for Historical Data Access servers.
A single OPC HDA client object allows you to manage connections to an HDA server, to browse the server name space, and to read raw and processed data from the server.
An OPC Historical Data Access object allows you to easily manipulate and visualize data retrieved from OPC HDA servers.
The OPC HDA read functions include:
Reads raw historical data for a selection of item tags over a selected
Reads data from the server at specific time intervals. It can return
array data as an output, by specifying an optional
Reads processed data from the server for chosen item tags using an
aggregate type defined from a list of available types. It can return
array data as an output, by specifying an optional
Reads all modified data between two times for a particular item.
The OPC HDA data object functions include:
(Time stamp union) Converts all data to have the same time stamps,
by resampling at the union of the time stamps of all items.
(Time stamp intersection) Converts all data to have the same time
stamps, using the time stamps common to all items in the array. Removes
all data that is not common to all elements (items) in the data object.
Converts all data to have the given (regularly) sampled time stamps
that you provided. Combines elements with the same item ID, so that
data objects with unique item IDs.
Generates a plot so you can visualize the historical data.
For a command-window listing of available functions and links to their specific help, type:
You access the Historical Data Access (HDA) functions through
opc.hda package. For this reason, to get help
on a particular HDA function, you must prefix the function name with
For example, to get help on the
Other prefixes, such as
opc.hda.Client might be necessary, as listed
in the output for
To view OPC HDA documentation in the help browser, see
Demos for OPC Historical Data Access Tutorials are in the help
documentation under the
Demos node in OPC Toolbox.
provides a graphical display of live OPC data for an OPC group object.
You can now watch live data stream to a MATLAB figure
trend functionality is independent
of OPC logging tasks. More information is available on the
OPC Toolbox software now supports time series objects, allowing
easier analysis and visualization of time domain data in MATLAB software.
The addition of this functionality involves the extension of the existing OPC Toolbox functions
support the creation of MATLAB time series objects. The new functions
also been added to the toolbox to support this feature. More information
is available on the reference pages for these functions.
has been enhanced with a
'-silent' option to install
OPC Foundation Core components without dialog boxes.
The event log is no longer cleared when a new event arrives
and the event log is full. Instead, the oldest event is removed to
make space for the new event. For more information, see the reference
page for the
You can now change the
while a client object is connected.
This release of OPC Toolbox software includes support for communicating with OPC servers from Simulink® software. The OPC Toolbox block library includes blocks for reading data from an OPC server, writing data to an OPC server, and running a Simulink simulation in pseudo real time (by slowing the simulation to run at system time). For more information on using OPC Toolbox software with Simulink software, see Using the OPC Toolbox Block Library in the User's Guide.
has been added to
daitem objects. The
expressed as a 16-bit unsigned integer, represents the quality of
the data item when last read. To work with the
you use the function
QualityID property into vendor, major,
substatus, and limit status information; and the function
QualityID property into a string. For
more information, see the
QualityID property reference
|Release||Features or Changes with Compatibility Considerations|
|R2012a||Conversion of Error and Warning Message Identifiers|