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

FPGA I/O Method Node

LabVIEW 8.6 FPGA Module Help
June 2008

NI Part Number:
371599D-01

»View Product Info

Owning Palette: FPGA I/O Functions

Installed With: FPGA Module

Invokes a method on an I/O item or hardware under an FPGA target in the Project Explorer window, such as a C Series module. The methods available depend on the FPGA target and the FPGA I/O item or C Series module you select.

To select a method, first configure the FPGA I/O Method Node with an FPGA I/O item. Selecting an FPGA I/O item allows you to click the Method section of the FPGA I/O Method Node and select a method from the shortcut menu.

Details  

FPGA I/O In is an optional input that allows you to specify the FPGA I/O item to read or write using an FPGA I/O control or constant. To use an FPGA I/O control as a connector pane input, the FPGA VI must be configured for reentrant execution.
FPGA I/O Out returns the FPGA I/O item on which you configure the node to operate.

FPGA I/O Method Node Details

Support for certain methods inside and outside the single-cycle Timed Loop varies by target and I/O item. Refer to the specific FPGA target hardware documentation for more information.

Tip  Right-click the FPGA I/O Method Node and select Find Item in Project from the shortcut menu to highlight the I/O item in the Project Explorer window.

Additional parameters vary depending on the related method. Method support varies by FPGA target and I/O resource. Some FPGA targets do not support any methods. A method can have zero or more parameters.

FPGA targets with bidirectional digital I/O lines and ports typically support the following methods for bidirectional I/O items.

  • Set Output Data Method—Writes data to the digital line or port without enabling the line or port. You can use the Set Output Data method to optimize performance when performing successive writes to a DIO resource. The data type of the Data input depends on the I/O item. For example, if the I/O item is a digital line, Data requires a Boolean data type.
  • Set Output Enable Method—Determines whether the digital input and output resource reads external input or writes output. Wiring TRUE to Set Output Enable for a digital line allows the resource to write data. Wiring FALSE to Set Output Enable allows the resource to read external data. The data type of the Enable input depends on the I/O item. For example, if the I/O item is a digital line, Enable requires a Boolean data type, and if the I/O item is an 8-bit digital port, Enable requires a U8 data type. The binary values of the U8 input correspond to the individual lines of the digital port. Zeros correspond to false inputs and ones correspond to true inputs.

Error Handling Details

You can right-click the FPGA I/O 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 function. If an error occurs, you might receive incorrect data. Add error terminals to be sure the data you receive is valid. FPGA targets might report errors differently. Refer to the specific FPGA target hardware documentation for information about how specific FPGA targets report errors.

Note  Adding error in and error out parameters may increase the amount of space the function uses on the FPGA target. The error in and error out parameters also may cause slower execution on the FPGA target.

Upgrading from FPGA Module 1.x

This node replaces the functionality of the Digital Data and Digital Enable functions from the FPGA Module 1.x.


Resources


 

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