Export Waveforms To Spreadsheet File (Digital) VI

Converts a waveform to a text string and writes the string to a new byte stream file or appends the string to an existing file. Wire data to the waveforms input to determine the polymorphic instance to use or manually select the instance.


icon

Inputs/Outputs

  • cstr.png delimiter (Tab)

    delimiter is the character or string of characters to use to separate fields in the spreadsheet file. For example, a value of , specifies a single comma as the delimiter, and a carriage return specifies a new line as the delimiter. The default specifies a single tab character as the delimiter. You also can use backslash ('\') codes to specify a delimiter by right-clicking the string control or constant and selecting '\' Codes Display from the shortcut menu.

  • cstr.png prompt

    prompt is the prompt of the file save dialog if the file path is empty.

    The default is Choose file to write.

  • cpath.png file path (dialog if empty)

    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.

  • cdigwdt.png Digital Waveform

    digital waveform is the input digital waveform.

  • cerrcodeclst.png error in (no error)

    error in describes error conditions that occur before this node runs. This input provides standard error in functionality.

  • cbool.png append to file? (new file:F)

    append to file? appends data to an existing file, if TRUE. If append to file? is FALSE (default), the VI replaces data in an existing file. If there is no existing file, the VI creates a new file.

  • cbool.png header? (write header:T)

    If header? (write header:T) is TRUE (default), the VI prints column and row headings, which contain time and date information and labels for the data. If header? is FALSE, the VI does not print column and row headings.

  • ipath.png new file path (Not A Path if cancelled)

    new file path (Not A Path if cancelled) is the path of the file to which the VI wrote data. You can use this output to determine the path of a file that you opened using a dialog box. new file path is <Not A Path> if you cancelled the dialog box.

  • ierrcodeclst.png error out

    error out contains error information. This output provides standard error out functionality.

  • This VI opens or creates the file beforehand and closes it afterwards. You can use this VI to create a text file readable by most spreadsheet applications.

    Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\Waveform\Waveform - Write Waveforms to File.vi