
%	error = DIG_Prt_Config(deviceNumber, port, direction, mode)
%
%	DIG_Prt_Config sets the data-direction and i/o mode of a parallel digital i/o port on a National 
%	Instruments card.  "Data direction" refers to whether the port will be used for input or output and 
%	"i/o mode" refers to whether some pins will be configured as handshaking pins allowing external
%	devices to latch the data they present on input pins into the i/o port registers.  
%	
%	deviceNumber-
%		The slot occupied by the card on which you want to configure a port.  See Board_ID and 
%		FindCard functios to identify the card in a particular slot or to Find which slot a specified
%		card occupies.
%
%	port-
%		The number of the port which you want to configure.  Remember, the first port is port 0, 
%		not 1.  For a three-port i/o card port numbers correspond to ports in this way:
%		0: PA
%		1: PB
%		2: PC
%
%	direction-
%		The value of Direction determines whether th port will be used for input or for output:
%		0: input
%		1: output
%
%	mode-
%		selects the handshaking mode.  Any port may be configured as mode 0 (no handshaking),
%		but only some ports may be configured as mode 1 (handshaking).  See National Instruments
%		NI-DAQ Software Reference Manual for Macintosh for information on which ports may be 
%		configured in handshaking mode.  
%		0: no handshake
%		1: handshake
%
%	See Also:
%
%	8/27/99	Allen Ingling wrote help file.
%
