Inserting a Dataset in the SML Editor
When an SML file is open in the corresponding editor, follow this procedure to insert a dataset in the code:
- Place the cursor at the desired insertion point in the editor.
- Right-click and select Insert Dataset from the context menu. The Insert MD Dataset dialog box displays in which you can:
- manually enter dataset values
- import dataset values from a file
- If you want to enter dataset values manually, see Dataset Parameters Tabs.
- If you want to import a dataset from a file, click Import, and choose from the following file types:
|
.mdx, .mda |
Twin Builder characteristic format. |
|
.txt |
Text file. |
|
.csv |
Comma-separated value. |
|
.out |
Maxwell SPICE (read-only – reads data inside the KW_DATA section). |
|
.dat |
TEK Oscilloscope. |
- If you select a file type other than .txt or .csv the data is imported immediately into the Add Dataset dialog box.
- Select a .txt or .csv file to open the Import dialog box in which you can specify settings for reading the data in the file for import. You can choose the Separator(s) and Decimal Symbol, as well as the line at which to begin the import. The dialog box shows both the original text and the text as it would appear when imported based on the current import settings.
- When satisfied with the import settings, click OK to import the data.
- Manually edit the imported data, if desired. See Dataset Parameters Tabs.
- Click OK to import the dataset into the model file.