Table Of Contents

In Place Element Structure (G Dataflow)

Version:
    Last Modified: January 9, 2017

    Controls how the compiler performs certain operations and, in some cases, increases memory and VI efficiency.

    Use the In Place Element Structure when you operate on a data element within an array, cluster, or data value reference without requiring the compiler to copy data values and maintain those values in memory. You also can use this structure to operate on any data type that you want to maintain within the same data space in memory.

    Programming Patterns
    terminal_icon

    Read Data Value Reference Element

    Reads a data value from a data value reference. Use this border node to operate on the data in place.

    This border node provides serialized access to the reference you wire to the structure. When part of a program obtains access to the reference, the structure blocks the rest of the program or other programs from simultaneous access. If you attempt to access a reference twice at the same time in the same structure, the structure returns a run-time error. If you attempt to access the reference after you obtain access inside the In Place Element Structure, the program might hang.

    Use a New Data Value Reference node to create a data value reference to wire to this border node.

    terminal_icon

    Write Data Value Reference Element

    Replaces the data in the data value reference you wire to Read Data Value Reference Element with the data value you wire to this border node.Use this border node to operate on the data in place.

    This border node provides serialized access to the reference you wire to the structure. When part of a program obtains access to the reference, the structure blocks the rest of the program or other programs from simultaneous access. If you attempt to access a reference twice at the same time in the same structure, the structure returns a run-time error. If you attempt to access the reference after you obtain access inside the In Place Element Structure, the program might hang.

    terminal_icon

    Array Index

    Returns the value stored in an array at a specified index.

    Use this border node to perform operations on an element or elements of an array and return the elements to the same location or locations in the array. Each array element you index with the border node on the left side of the structure must be placed back into the array with the border node on the right side of the structure by wiring the element back into the array.

    This border node allows the compiler to avoid making a complete value copy of the array and array elements in memory.

    terminal_icon

    Replace Elements

    Replaces an element or subarray in an array at the index you specify.

    Use this border node to perform operations on an element or elements of an array and return the elements to the same location or locations in the array. Each array element you index with the border node on the left side of the structure must be placed back into the array with the border node on the right side of the structure by wiring the element back into the array.

    This border node allows the compiler to avoid making a complete value copy of the array and array elements in memory.

    terminal_icon

    Unbundle Elements

    Allows you to read the elements of a cluster.

    Use this border node to perform operations on one or more cluster elements and replace the elements in the same location in the cluster. Each cluster element you unbundle with the border node on the left side of the structure must be bundled back into the cluster with the border node on the right side of the structure.

    This node allows the compiler to avoid storing a complete value copy of the cluster and cluster elements in memory.

    terminal_icon

    Bundle Elements

    Replaces one or more elements of a cluster.

    Use this border node to perform operations on one or more cluster elements and replace the elements in the same location in the cluster. Each cluster element you unbundle with the border node on the left side of the structure must be bundled back into the cluster with the border node on the right side of the structure.

    This node allows the compiler to avoid storing a complete value copy of the cluster and cluster elements in memory.

    terminal_icon

    Tunnel

    Point through which data enters or exits a structure.

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: Not supported


    Recently Viewed Topics