Importing 1-D Lookup Table Data from a Text File

GoldSim allows you to directly import a text file representing a 1-D Lookup Table. The format for this text file is as follows:

   number of dimensions (in this case, 1)

   the number of rows

   row value1, row value 2, …, row value n

   dependent value 1, dependent value 2, …, dependent value n

For example, the following table:

could be defined using the following text file:

! Example File

1

5

1, 2, 3, 4, 5

10, 20, 30, 40, 50

The data in the file can be comma delimited or space delimited, and lines beginning with "!" are ignored.

To import the text file press the Import Table… button in the Edit 1-D Table dialog. You will be prompted for the name of the text file.

   Note:  In addition to importing from a text file into a Lookup Table directly from the Edit dialog, you can also link a text file to a Lookup Table, so that it is imported automatically when the file changes.

Related Topics…

Learn more about: