This error is received when it is not possible to create an OPC Data Access item object for one or more items specified via the Simulink "OPC Read" block.
To see the names of the offending items, try to create the client, group and items in MATLAB (using OPCDA, ADDGROUP and ADDITEM respectively) and then import them from the MATLAB workspace by clicking on the "import from Workspace..." tab of the OPC Read dialog.
When using the OPC Read bock to create Data Access Items, it is preferable to use the tree structure to create items instead of entering the name since you may receive errors if there is a case mismatch. For example, the data access item object named
Random.Real8
is a valid name, whereas the data access object named
Random.real8
is an invalid name.
If you want to continue using the block as it is, and have the non-creatable items stay at zero, you should switch the "Items not available on server" option to "warn" or "none" in the "Error Control" pane of the OPC Configuration block.
Best Answer