LiZF
Hi,

 I need to connect the OpenPLC to Matlab Simulink. 
 How to operate between the virtual programmable logic controller devices and the Simulink model.
 Thank you!
Quote 0 0
thiagoralves
The program that made the connection between OpenPLC and Simulink was patented by my University, so I'm not allowed to distribute it anymore. The Simulink driver basically sends TCP messages to an intermediate program that did the link with Simulink. You can try to recreate this program by looking at the messages that OpenPLC Simulink driver sends. On the Simulink side, you can receive the messages from the intermediate program over TCP or UDP, but I think UDP works best due to the lower overhead.
Quote 1 0
thiagoralves
Edit: The University finally allowed me to publish the software. It is available here:  https://github.com/thiagoralves/OpenPLC_Simulink-Interface
Quote 0 0
rodrigo_rolle
Edit: The University finally allowed me to publish the software. It is available here:  https://github.com/thiagoralves/OpenPLC_Simulink-Interface


This is SUPER great news! Simlink is a very useful tool for integrating OpenPLC to simulation platforms. I've been using it successfully for a while, got excellent results not only with Simulink but also Labview and custom programs... Very good!
Quote 0 0