function result = FindCard(numName, searchSlots);

%	 function result = FindCard(numName, [searchSlots]);
%
%	Find card will search bus slots for a specified National Instruments board and return 
%	a vector holding the numbers of the slots in which the specified board is located.  The type of board
%	to search for is passed in the numName variable and may be specied using either a board ID 
%	number or a board name string. (See NiDeviceName help for information on board ID numbers 
%	and board names).  
%
%	The optional second argument is a vector holding slot numbers to search.  If no value is specified
%	then FindCard searches only slot 1.
%
%	See Also
%
%	8/28/99	Allen Ingling wrote it.
%


if (nargin < 2)
	searchSlots = 1;
end %if
if ischar(numName)
	numName = NiDeviceName(numName);
end %if
result = [];
for i = searchSlots
	if (Board_ID(i) == numName)
		result = [result i];
	end %if
end %for i

	
	
	
	
