Table Of Contents

Create File with Incrementing Suffix (G Dataflow)

Version:
    Last Modified: March 27, 2017

    Creates a file and appends an incrementing number suffix to the filename if the file already exists at a specified path. If the file does not exist, this node creates the file without appending an incrementing number suffix to the filename.

    connector_pane_image
    datatype_icon

    format string

    Method to convert the file into a string. This input must contain exactly one decimal format code (%d).

    Format String Examples

    format string file path actual path Comments
     (%d) C:\test.txt C:\test (1).txt The %d in format string specifies that the node appends an incrementing number starting with 1 to the filename before the period (.).
    spd-note-note
    Note  

    There is a space at the beginning of the format string.

    %4d C:\test.txt C:\test   1.txt The 4 in format string specifies that the suffix after the filename and before the period (.) has a width of 4.

    Default:   (%d)

    datatype_icon

    file

    Absolute path to the file you want to create. If you specify an empty or relative path, this node returns an error.

    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

    disable buffering

    A Boolean that specifies whether the file opens without buffering, which, for large amounts of data, may increase the rate of data transfer to the file.

    True The file opens without buffering.
    False The file opens with buffering.

    Default: False

    datatype_icon

    reference

    A reference to the file this node creates.

    datatype_icon

    actual path

    Path to the file this node creates.

    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