Table Of Contents

Write Delimited Spreadsheet (G Dataflow)

Version:
    Last Modified: March 27, 2017

    Converts a 1D or 2D array of double-precision floating-point data to a text string and writes the string to a file.

    This node creates a text file readable by most spreadsheet applications. This node opens or creates the file before writing to it and closes it afterwards.

    connector_pane_image
    datatype_icon

    format

    A string that uses format specifiers to determine how to convert the data to characters.

    Format String Examples

    format string Description
    %.3f Creates a string to represent the number with three digits to the right of the decimal point.
    %s Copies the input string.
     (%d) Converts the data to integer form using as many characters as necessary to contain the entire number.

    Default: %.3f

    datatype_icon

    include time channels

    Boolean value that determines whether the resulting spreadsheet will include a column of time values from the input array of waveforms.

    This input becomes available only when you wire an array of waveforms to the node.

    datatype_icon

    file

    The file that this node writes to. The node opens the specified file without requiring you to call Open/Create/Replace File first.

    datatype_icon

    2D data

    Data the node writes to the file.

    This input accepts double-precision floating-point numbers, 64-bit integers, strings, and arrays of waveforms. This input changes to waveforms if you wire an array of waveforms to the node.

    datatype_icon

    waveforms

    Array of waveforms whose y values the node writes to the spreadsheet file.

    This input becomes available only if you wire an array of waveforms to the node.

    datatype_icon

    append to file

    A Boolean that determines whether to add data to the end of the file you specify. If you do not specify a file, the node creates a new file.

    True Appends data to the existing file.
    False Replaces the data in the file.

    Default: False

    datatype_icon

    error in

    Error conditions that occur before this node runs.

    The node responds to this input according to standard error behavior.

    Standard Error Behavior

    Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

    error in does not contain an error error in contains an error
    If no error occurred before the node runs, the node begins execution normally.

    If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

    If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

    Default: No error

    datatype_icon

    delimiter

    A character or string of characters used to separate fields in the spreadsheet text. For example, a value of , (comma) specifies a single comma as the delimiter.

    Default: \t — single tab character

    datatype_icon

    new file

    Path to the newly created file.

    datatype_icon

    error out

    Error information.

    The node produces this output according to standard error behavior.

    Standard Error Behavior

    Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

    error in does not contain an error error in contains an error
    If no error occurred before the node runs, the node begins execution normally.

    If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

    If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: DAQExpress does not support FPGA devices


    Recently Viewed Topics