Syntax

rtobj.connect

Description

connect is a method of the simwb.rtobj object. The connect method will establish a connection socket between MATLAB and the SIMulation Workbench server running on the real-time host. The connection will be established between MATLAB and the Real-Time Host environment that is linked to the Real-Time Host Object. From one MATLAB session you can also connect to multiple real-time host computers using Real-Time Host objects linked to different real-time host environments. Once a connection is established between MATLAB and the SIMulation Workbench server, SIMulation Workbench API calls can be made from the MATLAB command line.

See also:

     startTestSession  getCurrentSession

Example: rtobj_connect.m