Converts a 2D or 1D array of single-precision numbers to a text string and writes the string to a new byte stream file or appends the string to an existing file. You also can transpose the data. The VI opens or creates the file before writing to it and closes it afterwards. You can use this VI to create a text file readable by most spreadsheet applications. This VI calls the Array To Spreadsheet String function to convert the data.
![]() |
format specifies how to convert the characters to numbers. The default is %.3f. Use the format string syntax. |
![]() |
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 single-precision numbers the VI writes to the file if 1D data is not wired or is empty. |
![]() |
1D data contains the single-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 proceeding. 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. |
![]() |
delimiter is the character or string of characters, such as tabs, commas, and so on, to use to delimit fields in the spreadsheet file. The default is a single tab character. |
![]() |
new file path returns the path to the waveform file. |