Manually Create Automation Server

Microsoft® Windows® operating system automatically creates an Automation server when a controller application first establishes a server connection. Alternatively, you can manually create the server before starting any of the client processes.

To create a MATLAB® server manually, use the -automation switch in the matlab startup command. From the operating system prompt, type:

matlab -automation

Alternatively, you can add this switch every time you run MATLAB, as follows:

  1. Right-click the MATLAB shortcut icon

    and select Properties from the context menu. The Properties dialog box for matlab.exe opens to the Shortcut tab.

  2. In the Target field, add -automation to the end of the target path for matlab.exe. Be sure to include a space between the file name and the symbol -. For example:

    "C:\Program Files\MATLAB\R2016a\bin\win64\MATLAB.exe" -automation

Note

When the operating system automatically creates a MATLAB server, it too uses the -automation switch. In this way, MATLAB servers are differentiated from other MATLAB sessions. This protects controllers from interfering with any interactive MATLAB sessions that might be running.