Converts a 1D or 2D array of double-precision numbers to a text string and writes the string to a new file or appends the string to an existing file. You can optionally transpose the data. This VI opens or creates the file before writing to it and closes it after writing to it. You can use this VI to create a text file that HiQ can read.
![]() |
format indicates how to convert the numbers to characters. If the format string is %.15g (default), the VI creates a string long enough to contain the number, with fifteen digits to the right of the decimal point. If the format is %d, the VI converts the data to integer form using as many characters as necessary to contain the entire number. Refer to the description of formatting strings and the Array To Spreadsheet String function. |
![]() |
file path is the path name of the file. If file path is empty (default) or is Not A Path, the VI displays a dialog box from which you can select a file. Error 43 occurs if you cancel the dialog box. |
![]() |
2D data contains the double-precision numbers the VI writes to the file if 1D data is not wired or is empty. |
![]() |
1D data contains the double-precision numbers the VI writes to the file if this input is not empty. The VI converts the 1D array into a 2D array before optionally transposing it, converting it to a string and writing it to the file. If transpose? is FALSE, each call to this VI creates a new line or row in the file. |
![]() |
append to file? indicates whether to append the data to an existing file. If TRUE, the VI appends data to an existing file. If FALSE, the VI replaces data in an existing file. If there is no existing file, the VI ignores the value of append to file? and creates a new file. |
![]() |
If transpose? is TRUE, the VI transposes the data after converting it from a string. The default is FALSE. |
![]() |
new file path is the path of the file from which the VI reads data. You can use this output to determine the path of a file that you open using a file dialog box. new file path returns Not A Path if you select Cancel from the dialog box. |