OPC UA write to BaseDataType is not supported

I have a simulink model that exchanges data through OPC UA blocks, my model was working correctly but I closed it and reopened it and now when I run it I get the following error:
MATLAB System block 'RealTime_BSM1_WSAN_1/OPC UA Write1/opcInternalBlock' error occurred when invoking 'outputImpl' method of 'opcUAWrite'. The error was thrown from '
'C:\Program Files\MATLAB\R2024a\toolbox\icomm\opc\opcblks\opcuablks\opcUAWrite.p' at line 0'.
Writing to BaseDataType type nodes is not supported.
Español: Tengo un modelo simulink que intercambia datos a través de bloques OPC UA, mi modeloe staba funcionando correctamente pero lo he cerrado y vuelto a abrir y ahora al ejecutarlo me aparece el error que se menciona anteriormente

Answers (1)

Govind KM
Govind KM on 10 Dec 2024
Edited: Govind KM on 10 Dec 2024
Hi Andrea,
I encountered a similar issue when trying to write to a node using OPC UA blocks in Simulink. The node in question was a Variable node with a Server Data Type of BaseDataType. As per OPC UA specifications, the BaseDataType is Abstract, which does not have an encoding and is hence not supported by the Industrial Communication Toolbox. A solution that worked for me was to update the server to set the node data type as one of the supported OPC UA server data types mentioned here:
Details on BaseDataType are mentioned in documentation from the OPC Foundation:
Hope this helps!

Asked:

on 9 Dec 2024

Edited:

on 10 Dec 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!