Table Of Contents

Memory Allocation (G Dataflow)

Version:
    Last Modified: March 3, 2017

    Allocates device memory of a specific size and returns the location of the memory.

    connector_pane_image
    datatype_icon

    session in

    The resource to be used.

    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

    size

    Size of the allocation.

    datatype_icon

    require 32-bit region

    A Boolean value that forces the whole memory chunk to be in the 4 GB boundary and the 32-bit address range.

    True Restricts memory allocation to the 32-bit address range.
    False Allows memory allocation to be done anywhere in the entire 64-bit address range.

    Default: False

    datatype_icon

    session out

    The resource to which a VISA session is opened.

    This output also includes the class for the session, which matches that of session in.

    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.
    datatype_icon

    offset

    The location of the allocated memory.

    Locating and Allocating Memory

    You can allocate the memory on either the device itself or on the computer's system memory. If the device specified with session in is located on the local interface card, the memory can be allocated either on the device itself or on the computer's system memory. The memory region referenced by offset can be accessed with Move In or Move Out, or it can be mapped using Map Address.

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: Not supported


    Recently Viewed Topics