Configuring the Sizing Weights Input Parameters File

You can select the ASCII input file that will be updated by the Simcode component during the input procedure, configure how the contents of the input file are updated, and determine if you want to save the generated file to an output file parameter.

  1. Click the Input tab on the Simcode Component Editor.

    The contents of the tab appear.

  2. Click the large Click here to open a new Data Source button in the center of the tab.

    The Quick Data Source Configuration dialog box appears. For more information about quick data source configuration, see Configure the Input Using Quick Data Source Configuration in the Isight Component Guide.

  3. Click Advanced.

    The Exchanger Wizard's Select Data Source dialog box appears.

  4. Because you will be using an existing file, verify that Update a template file is selected, and click Next.

    The Select Template File dialog box appears.

  5. Click Browse.

    The Open dialog box appears.

  6. Navigate to the following directory:

    <Isight_install_directory>\<operating_system>\examples\getting_started

  7. Select the WeightsIn.template file, and click Open.

    Isight adds the full path of the file to the Template File text box.

  8. Select Store contents of the template in the model.

  9. Click Next.

    The Select Local File Name dialog box appears.

  10. Change the local file name to WeightsInput.

    This is the name of the input file that Isight will create from the template file. The weights.exe program expects to find this file in the runtime directory during execution.

  11. Select Save generated file to output file parameter.

  12. Click Next.

    The File Format dialog box appears.

  13. Verify that the General Text option is highlighted in the Format area.

  14. Click Finish to return to the component editor.

    Isight displays the input file information as shown in the following figure:

  15. Click the Command tab, and click the Required Files subtab, where you can see file parameters created by Isight (one for each file).

  16. Rename the file parameters with names that better reflect the scope of the model.

    1. Click in the Name text box, and change WeightsIn to WeightsIn_template.
    2. Similarly, rename WeightsIn_save to WeightsIn.

  17. Click Apply to save your changes.