
README
------------

1. Download and Install
  SimDiff Automation can be installed by downloading and running the installer exe.   
  The default installation directory is C:\Program Files\EnSoft\SimDiff Automation,
  which is different from the SimDiff Workstation installation directory. 
  
  The SimDiff Automation executable is sd4.exe in the root of the installation directory.

  For headless installation, use the silent flag and optionally specify the installation
  directory:
  
    - SimDiffAutomation-2026a.0.1-install-win64.exe /S /D=E:\SimDiffAutomation
  
  
2. License Setup

  Before using SimDiff Automation for the first time, you will have to configure the license.
  
    - sd4.exe -license

  To configure licensing in a headless environment, contact ENSOFT.


3. MATLAB Setup

  ENSOFT recommends configuring SimDiff Automation to run Simulink tasks 
  through the MATLAB "-batch" command line option.  This requires MATLAB R2019a or later.

  Please contact ENSOFT for assistance if you need to configure SimDiff Automation to:
    - pass through the MATLAB Batch Licensing Executable (matlab-batch), 
    - use the MATLAB Engine API, for example for older MATLAB releases.
  
  To use Simulink, SimDiff needs a MATLAB installation that is compatible with
  the given models.  There are two ways for SimDiff to find an installation.
  
  1) By default, SimDiff will search the PATH for matlab.
  
  2) To specify a set of MATLAB installations, configure the MATLAB Batch Launch
  Configurations file.  Copy the template from the installation directory:

   - copy configuration-templates\matlab\matlab-batch-launch-configurations.xml "%APPDATA%\EnSoft\SimDiff Automation\matlab-batch-launch-configurations.xml"

  Then, follow the instructions in the file to add valid MATLAB installations.


4. Generate Peer Review File

  To generate an Peer Review file, run sd4.exe with the -export option:
  
    - sd4.exe -l model1.slx -r model2.slx -export model_peer_review.html

