Configure the Output Using the Quick Data Source Configuration Option
You can use the Quick Data Source Configuration option to configure the output.
- Double-click the Simcode component icon
.
The Simcode Component Editor icon appears. - From the Simcode Component Editor, select the Output tab.
-
Click the box labeled Click here to open a new Data Source in the center of the dialog box.
The Quick Data Source Configuration dialog box appears.
Tip: If you want to use the Exchanger Wizard, click Advanced (see Configure the Output Using the Exchanger Wizard). - In the Template File text box, enter the path to the template file, or click Browse to locate the file.
- Select the Line Ending:
Option Description Default Select this option to leave the line endings as they were found in the output file. Isight does not attempt to change the line endings. If the file has to be copied for some reason, local line endings are used. Local Select this option to write the file with the local line endings for the computer on which the model is running. This is the location of the Isight Gateway and the SIMULIA Execution Engine station. This means CR-LF on Windows and LF on Linux. The file will always be copied in text mode and the line endings updated, even if the line endings already appear to be correct. Linux Select this option to always separate lines with LF, even if the model is running on Windows. Windows Select this option to always separate lines with CR-LF, even if the model is running on Linux. - Choose the format of the file.
Option Description General Text Use this format for text with no particular structure. Fields are located by searching for words or phrases. Name/Value Use this format for data organized as a list of name/value pairs, where the name is the first word on the line and there is a delimiter (space or some punctuation) between the name and the value. Fields are located by matching names. This format is used only with specially formatted data; however, it does allow the variable names to be automatically selected based on the field names. Table Use this format for tables and lists of numbers. Fields are identified by row number (line) and column number. This format can be used with files in any format as long as the line numbers never change; the number of entries on each line do not have to be the same. The cells in the table can be separated by delimiters (e.g., space, comma, etc.), or the table columns can be defined by absolute character position (sometimes useful for reading packed Fortran formatted data). This format allows whole columns, rows, and arrays to be read into array parameters in one action. Vector This format is for data organized as a list of values separated by spaces or punctuation. Fields are numbered sequentially through the whole section. This format allows one-dimensional arrays to be read in one operation. The values can span multiple lines. This option is often used for Fortran list-directed input. - If you selected Name/Value as the format, you can specify a Delimiter (Space, Tab, Colon, Equal Sign).
- Click OK.
- From the Simcode Component Editor, select regions of the output file that will be used to define a parameter and its value.
When you are configuring the output of the Simcode component, you can only read parameters from the output file.