What VIs or Functions Do I Use to Configure Various Handshaking Modes and Other Features for the 6533 (DIO-32HS)?Hardware: Digital I/O (DIO)>>High-Speed>>AT-DIO-32HS
Problem: What VIs or functions do I use to configure various handshaking modes and other features for the 6533 (DIO-32HS)? Specifically:
Solution: Question: How do I configure a handshaking mode? There are six basic handshaking modes, apart from the three pattern I/O modes. The 6533 User Manual gives descriptions and timing for each of mode. The six handshaking modes are as follows:
LabVIEW To enable handshaking mode, as opposed to pattern I/O mode, change the "handshake source" in the DIO Start VI (or the "clock source" in the Clock Config advanced VI) to "I/O connector." To select an individual handshaking mode, use the handshaking parameters cluster in the DIO Config VI (or Mode Config advanced VI):
Only burst mode uses a clock signal on the PCLK line. By default, the PCLK direction is opposite the data direction: PCLK is received in data output mode and driven in data input mode. To reverse this, call the DIO Parameter VI with an attribute of "clock reverse mode" and a value of "on." NI-DAQ Handshaking mode is enabled by default for all group operations, as long as you do not call DIG_Block_PG_Config and select pattern generation mode instead. The default handshaking protocol is level mode. To choose another handshaking protocol or modify the protocol, call the DIG_Grp_Mode function.
You can enable or disable request-edge latching for each mode when you call DIG_Grp_Config (the DIG_Grp_Config call precedes the DIG_Grp_Mode call). A "direction" parameter of 0 or 4 enables request-edge latching, whereas a "direction" parameter of 1 or 3 disables request-edge latching. Only burst mode uses a clock signal on the PCLK line. By default, the PCLK direction is opposite the data direction: PCLK is received in data output mode and driven in data input mode. To reverse this, call Set_DAQ_Device_Info with an attribute of ND_CLOCK_REVERSE_MODE_GR1 for group 1 or ND_CLOCK_REVERSE_MODE_GR2 for group 2, and a value of ND_ON. Question: How do I configure a pattern I/O mode? In addition to the six handshaking modes, there are three pattern I/O modes. See the 6533 User Manual for details.
LabVIEW To select one of the pattern I/O modes instead of a handshaking mode, use the "handshaking source" in the DIO Start VI (or "clock source" in the Clock Config advanced VI):
Use the DIO Config VI (or Mode Config advanced VI) if you need to change the default request polarity, which is active low. Other than the request polarity, the handshaking parameters in DIO Config or Mode Config are ignored in pattern I/O mode. NI-DAQ To select pattern I/O instead of handshaking mode, call the DIG_Block_PG_Config function, with the "configuration" parameter set to 1 (enable pattern generation). Enabling pattern I/O overrides any handshaking parameter set with the DIG_Grp_Mode function.
Use the DIG_Grp_Mode function if you need to change the default request polarity, which is active high. Other than the request polarity, the handshaking parameters in DIG_Grp_Mode are ignored in pattern I/O mode. Related Links: Product Manuals: 653X User Manual Attachments:
Report Date: 11/10/1998 Last Updated: 09/12/2003 Document ID: 1F9B7UG0 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
