
Contents |
ASCII
Export worksheet data as ASCII file
1. expASC path:="c:\signal.dat";
2. expASC type:=csv path:="c:\signal";
3. expASC type:=dat path:="c:\signal" select:=1 separator:=cs;
4. expASC iw:=[book1]1 path:="c:\signal.dat";
| Display Name | Variable Name | I/O and Type | Default Value | Description |
|---|---|---|---|---|
| Input Worksheet | iw |
Input Worksheet | | Specify the worksheet to be exported. By default, the active worksheet is sued. This value cannot be changed in the dialog box. |
| File Type | type |
Input int | | Specify the type of the exported file.
Option list:
|
| File Path | path |
Input string | | Specify the path and filename of output file. |
| Overwrite Existing | overwrite |
Input int | | Specify whether to overwrite the existing file if there is an file with the same name as the exported file.
Option list:
|
| Export Selected Data Only | select |
Input int | | When this checkbox is selected, only the selected data will be exported. Note that the selection can be non-contiguous. |
| Separator | separator |
Input int | | Specify the character used as separator or delimiter. This control is not available when File Type is set to CSV. In that case, comma will be used for separator.
Option list:
|
| Include Short Name | shortname |
Input int | | Specify whether the Short name heading row will be exported. |
| Include Long Name | longname |
Input int | | Specify whether the Long name heading row will be exported. |
| Include Units | units |
Input int | | Specify whether the Unit heading row will be exported. |
| Include Comments | comment |
Input int | | Specify whether the Comments heading row will be exported. |
| Include User Parameters | userparam |
Input int | | Specify whether the User Parameters rows will be exported. |
| Include Sampling Interval | sampinterv |
Input int | | Specify whether the Sampling interval heading row will be exported. |
| Include Parameters | parameter |
Input int | | Specify whether the Parameter heading row will be exported. |
| Include Row Labels and Index | rowlabel |
Input int | | Specify whether the row labels and index numbers will be exported. |
| Export with Full Precision | precision |
Input int | | Specify whether data should be exported with full precision. The default value is true. |
| Export Sampling Interval as New Column | addxcol |
Input int | | Specify whether to add a new time column to the output data according to the sampling interval. |
| Export Missing Values as "--" | missing |
Input int | | Specify whether to export missing values as the "--" string. |
| Suffix for numbers in text cell | suffix |
Input string | | You can add suffix for numeric numbers in text columns. If you wish to do so, use this variable to specify the suffix. |
The expASC function exports worksheet data as ASCII file.
Note that the ASCII export is limited to data-only worksheets. Complex documents containing embedded information -- report sheets, worksheets with embedded or linked graphs (including sparklines) -- cannot be exported to ASCII files. If the worksheet to be exported has embedded images and graphs, those images and graphs will be ignored during exporting.
The following example exports the active worksheet as a text file (c:\test.txt):