How can I connect with matlab?I made a control system in matlab. I want to connect it with the model in vc, but I can’t find the relevant tutorial. Please help me
which interfaces do matlab provide for external communication?
I see opc ua and modbus toolbox, but I don’t know how to use them to connect with vc.
I would try OpcUa, May this helps?
I tried this, but it didn’t succeed, so I got into a difficult problem. …
What did you do? MatLab has industrial communication toolbox but that comes with OPC UA client, so connecting client to client won’t work. You can connect the client to OPC UA server like the documentation explains and connect the VC client to the server and try that route.
Otherwise, you can use socket connection.
Thank you very much, I have successfully connected vc and matlab!
Thank you，I successfully connected to matlab through opc ua.
There is also this 3rd party plugin for VC which creates an OPC UA server from VC. It has some limitations, but with it you don’t need to have an external OPC UA server for situations like this that the other side (MATLAB) only has a OPC UA client.
I did try it with this plug-in, but matlab reported such an error “an error occurred verifying security.” I couldn’t find the security certificate.