wg_get_device_c

	status.i4.v = wg_get_device_c(root_names.i1a.r, which_devices.i4a.r,
				      device_indices.i4a.r, errors.i2a.r,
				      num_devices.i4.v, same_type.i4.v)

	This routine returns the device indices for the requested
	database devices for a C465/6/7/8/0, C453, C473, V473, and
	C475 cards.

	root_names		root name of family
				(dio_get_terse_name_length characters
				 per device)
	which_devices		requested device or array of devices
				(WG_MAIN_DEVICE -> main parameter page device,
				 WG_TIME_DEVICE -> time table device,
				 WG_HI_DEVICE -> H(I) table device,
				 WG_MAP_DEVICE -> map device,
				 WG_SF_DEVICE -> scale factor device,
				 WG_VERSION_DEVICE -> version (misc parameter)
						      device,
				 WG_REF_DEVICE -> reference device,
				 WG_GI_ABSC_DEVICE -> G(I) current table device,
				 WG_HI_ABSC_DEVICE -> H(I) current table device,
				 WG_CLOCK_DEVICE -> clock event table device,
				 WG_MDAT_DEVICE -> MDAT selection device,
				 WG_GI_DEVICE -> G(I) table device,
				 WG_OFFSET_DEVICE -> offset value table device,
				 WG_DELAY_DEVICE -> delay value table device,
				 WG_FREQUENCY_DEVICE -> frequency value table
							device,
				 WG_PHASE_DEVICE -> phase value table device,
				 WG_FT_FREQUENCY_DEVICE -> f(t) frequency device)
				(If a negative value is passed for this
				argument, it's absolute value will be used
				for every device requested.  This feature
				cannot be used for type WG_MAIN_DEVICE.)
	device_indices		returned device index or array of device
				indices
	errors			returned device error or array of errors
	num_devices		number of devices
	same_type		flag whether or not all entries in
				"which_device" are the same
				(TRUE -> use first value in "which_device"
					 for every device requested,
				 FALSE -> each entry in "which_device" will
					  be treated as unique)

	This function returns ACNET status values as follows:

	OK			success
	CBS_MEMFAIL		dynamic memory allocation failure
	CBS_INVARG		invalid root name (no blanks)
	CBS_INVSIZ		invalid family size (database entry error)
	CBS_INVTYP		device is not a C465/6/7/8/0 or C453 module
	CBS_NO_SUCH		family device not found
	DIO_xxx			error retrieving database info
	positive value		number of devices in error

	This function requires the following include files:

	ul_cbsaux_h:auxlib_device_h, acnet_errors_h

	Related functions:

	wg_get_family_c, wg_find_time_slot_c, wg_find_time_slot_list_c,
	wg_find_table_numbers_c, wg_find_table_numbers_list_c,
	wg_get_table_numbers_c, wg_get_table_numbers_list_c, wg_find_level_c,
	wg_find_level_list_c, wg_scale_time_data_c, wg_scale_mdat_data_c, 
	get_465_device, get_453_device, get_465_family, get_465_type,
	c465_ft_frequency_c, c465_ft_frequency_list_c, c465_find_level_c,
	c465_find_level_list_c, c465_get_table_c, c465_get_table_list_c,
	find_time_slot_c, find_time_slot_list_c, get_453_family,
	get_453_channel, wg_find_level_c, wg_find_level_list_c,
	wg_scale_mdat_mults_c, wg_scale_mdat_selections_c,
	wg_read_mdat_selections_list_c, wg_set_mdat_selections_list_c,
	wg_unscale_mdat_mults_c, wg_unscale_mdat_selections_c,
	dio_get_terse_name_length, dio_set_terse_name_length_c

	C/C++ usage:

	static const char	root_names[NUM_DEVICES*DEVICE_TERSE_NAME_LEN+1] =
	"I:H102  I:V103  ";
	short	errors[NUM_DEVICES];
	int	status;
	static const int	which_devices[NUM_DEVICES] =
	{WG_TIME_DEVICE, WG_TIME_DEVICE};
	int	device_indices[NUM_DEVICES];
	int	num_devices = NUM_DEVICES;
	int	same_type = FALSE;

	status = wg_get_device_c(root_names,which_devices,device_indices,
				 errors,num_devices,same_type);