Add a new system variable "MATLAB_DIR" with the path to Matlab, e.g. "C:\Program Files\MATLAB\R2020a". Do this before opening Visual Studio (respectively restart Visual Studio after adding the system variable)
langmo/plc2simulink
Simulink plugin to connect to and control a simulation running in PLCSim Advanced (TIA Portal).
C++