Invokes a method on a memory block on the FPGA. The methods available depend on the type of memory you configure.

You must specify a memory item before you specify a method.

You can invoke the following memory methods for memory you implement as block memory or look-up tables:

Write, Read

You can invoke the following memory methods for memory you implement as DRAM:

Write, Request Data, Retrieve Data
Note When you configure the memory to have two read interfaces, the Read method contains an [A] or [B] in the label to denote which interface the node will access.


icon

Inputs/Outputs

  • cgenclassrntag.png Memory In

    Memory In specifies the FPGA memory. You can wire a Memory control, Memory constant, VI-Defined Memory Configuration node, or another Memory Method Node to Memory In.

  • igenclassrntag.png Memory Out

    Memory Out returns Memory In if Memory In is wired. Otherwise, Memory Out returns the memory that you specify in the Memory Method Node.

  • To use the Memory Method Node, you first must create memory items. You can create a memory item in the Project Explorer window or using a VI-Defined Memory Configuration node. You then can right-click the Memory Method Node and select the memory item from the Select Memory shortcut menu.

    When you wire a memory item to Memory In, LabVIEW renames this node to Memory Item to indicate that the node is now associated with a memory item in the project.

    Tip You can drag a memory item from the Project Explorer window to the block diagram to place a configured Memory Method Node on the block diagram.

    Right-click the Memory Method Node and select Add New Memory from the shortcut menu to create a new memory item in the Project Explorer window.

    Tip If Memory In is unwired, you can right-click the Memory Method Node and select Find Item in Project from the shortcut menu to highlight the memory item in the Project Explorer window.

    If you reset the FPGA VI, the memory remains unchanged. You must download the FPGA VI again to reinitialize the memory.

    Displaying Error-Handling Terminals

    Add error terminals to monitor whether the operation you performed completed correctly. You also can add error terminals to place this node in the data flow. Right-click the Memory Method Node on the block diagram and select Show Error Terminals from the shortcut menu to add standard LabVIEW error in and error out parameters to the node. If error in includes an error, you might receive incorrect data.

    Note Adding error in and error out parameters increases the amount of space the node uses on the FPGA target. The error in and error out parameters also can cause slower execution on the FPGA target.

    To use this node in the data flow without using error terminals, include the node in a Flat Sequence or Stacked Sequence structure.