# Running the Translation

If you have performed project setup, instantiated subcircuits, configured the nodes, and setup translation options, you are ready to run s2ibis2.

### Running

Choose Execute from the SpiTran Translation menu. An execution window will appear:
This window will show the output printed by the s2ibis2 command, although with some combinations of Java release and operating systems the output may appear only when s2ibis2 finishes. Examine this carefully for error messages. In particular, there may be simulation failures that could cause s2ibis2 to produce incorrect output or no output. If there are no error messages the IBIS file should be found in the project directory. This file has the same name as the SPICE buffer file, with a .ibs extension. Once the s2ibis2 program has finished, the resulting IBIS file (if present) is opened in a text editor for you to view. Here is a sample IBIS file produced by s2ibis2.
Click SaveAs... if you wish to save the contents of the Execution Messages window to a text file. In the file browser that opens, set the directory and file name, or accept the default file name s2ibis2.log. When you are finished click Close to close the window.

### The Script

SpiTran runs s2ibis2 by running it's own startup script with additional options. For example, on Microsoft Windows the command might be:

      spitran.bat -root C:\spitran -s2ibis C:\buffproj buff1.s2i buff1.ibs

The script changes to the project directory, runs s2ibis2 on the .s2i file and then shows the IBIS file in a viewer, if the IBIS file is present. You may modify the script to improve the behavior. The Execution Messages window shows all output printed by the startup script and programs that it calls.