لربط الماتلاب مع اى هاردوير خارجية بيكون عن طريق انشاء اتصال ببروتوكول معين
ومن اهم بروتوكولات الاتصال RS-232
ويتم فى الماتلاب من خلال Instrument Control Toolbox
وهذا الهيلب الخاص به
http://www.mathworks.com/help/toolbox/instrument/
Communication Protocols
Instrument Control Toolbox supports communication protocols, including GPIB, serial, TCP/IP, and UDP, for direct communication with instruments. You can also communicate with instruments using VISA over GPIB, VXI, USB, TCP/IP, and serial buses. The toolbox provides a set of functions for creating and working with instruments. These functions let you write commands to an instrument or read data from it for use in MATLAB. The toolbox supports common text commands, such as SCPI. The transferred data can be binary or ASCII.
ويجب عليك التعرف اولا على جهاز ال PLC وما انواع الاتصال التى يدعمها والاوامر المستخدمة به