Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

How Do You Configure the Digital IO on S Series and 673X Devices?

Hardware: Multifunction DAQ (MIO)>>S Series, Signal Sources (AWG/FG/AO)>>Analog Output Devices>>PXI-6733, Signal Sources (AWG/FG/AO)>>Analog Output Devices>>PCI-6733

Problem: I am trying to configure my DAQ device to do correlated digital output. However, when I compile my code, I receive an error very early in my code at DIG_Grp_Config which is the first NI-DAQ function I call. I have checked the parameters of this function and I am confident they are correct. What am I missing?

Solution: You must call DIG_Line_Config prior to calling the DIG_Grp_Config function.

Using the DIG_Grp_Line function with a PCI-6115, PCI-6120, or 673X device will configure a digital line either for immediate digital I/O or for buffered digital I/O with a clock signal. Specifying a line direction of 0 or 1 will configure the line for immediate digital I/O using the DAQ-STC chip. In this mode, no handshaking is possible. Specifying a line direction of 4 or 5 will configure the line for clocked, buffered digital I/O. A subsequent call to DIG_Grp_Config will then assign the line to either the input group or the output group for the device. DIG_Block_PG_Config sets the source for the clock signal.

Related Links:
Product Manuals: Traditional NI-DAQ User Manual
KnowledgeBase [041A1KNI]: On Which Devices Can the Digital Input/Output (DIO) Lines be Individually Configured?


Attachments:





Report Date: 05/14/2004
Last Updated: 01/21/2005
Document ID: 39DD4IMV

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