Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Write (FIFO Method)

LabVIEW 2009 FPGA Module Help

Edition Date: June 2009

Part Number: 371599E-01

»View Product Info

Requires: FPGA Module

Writes an element to an FPGA FIFO.

Use the FIFO Method Node to implement this method.

Details  

FIFO In specifies the FIFO. If you leave FIFO In unwired, you can specify the FIFO by right-clicking the FIFO Method Node and selecting a FIFO from the shortcut menu. Otherwise, you can wire a FIFO control, FIFO constant, VI-Defined FIFO Configuration node, or another FIFO Method node to FIFO In.
Element inputs the data element you want to store in the FIFO. The Element data type is the data type you configure in the FIFO Properties dialog box when you create the FIFO.
Timeout inputs the number of clock ticks the function waits for available space in the FIFO if the FIFO is full. A value of –1 prevents the function from timing out. A value of 0 indicates no wait. Wire a constant of 0 to Timeout if you use the FIFO Method Node in a single-cycle Timed Loop.
FIFO Out returns FIFO In if FIFO In is wired. Otherwise, FIFO Out returns the FIFO that you specify in the FIFO Method Node.
Timed Out? returns TRUE if space in the FIFO is not available before the function completes execution. If Timed Out? is TRUE, the function does not add Element to the FIFO.

Write (FIFO Method) Details

You can use this method with DMA FIFOs to transfer data from FPGA VIs to host VIs.

Special Considerations for Single-Cycle Timed Loops

If you use this method in a single-cycle Timed Loop, you must set the Write option in the Advanced Code Generation FIFO Properties page to Arbitrate if Multiple Requestors Only or Never Arbitrate for the FIFO item you write, and you cannot use the function on that FIFO anywhere else in the FPGA VI.

You can use FIFOs to transfer data among multiple clock domains.


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit