Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
6 rating:
 1.66 out of 5     Rate this Document

Configuring the NI 9401 for Input/Output

Hardware: PXI/CompactPCI>>Controllers

Problem:
I know that the NI 9401 has eight digital lines.  Can this module be used for counter inputs, digital inputs and digital outputs simultaneously?

Solution:
The 9401 can be configured for directional line measurements by four-bit nibble.  Each group of four channels (channels 0-3 and channels 4-7) must be configured to either input or output.  All channels may be input, all may be output, or one nibble may be input with the other nibble set to output.  When used in a CompactDAQ 9172 chassis, you can use counter inputs with a nibble set to input and counter outputs with a nibble set to output.

When using the NI 9401 in a CompactRIO system, the way to configure the module for input or output is as follows:
  • The initial input/output configurations can be configured from the module properties dialog box. To get to module properties, right click on the module in the Project Explorer and click Properties.

Figure 1

  • You can also change the direction of the lines programmatically using I/O method nodes. You can create a method by going in the Functions Palette and selecting Programming » FPGA I/O » I/O Method. Once you place the method, right-click it and go to Select Item » Mod(x). Now click on Method and select Select Line Direccion.



Related Links:
KnowledgeBase 42C9J5NO: Using Internal Counters on a NI cDAQ-9172 as a Sample Clock for Other Tasks
Product Manuals: NI 9401

Attachments:





Report Date: 07/20/2007
Last Updated: 04/30/2009
Document ID: 4BJH11Q9

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit