wg_find_time_slot_c

	status.i4.v = wg_find_time_slot_c(main_device.i1a.r, time.r8.v, 
					  table_number.i4.v [,search_type.i4.v]
					  [,match_time.r8.r])

	This function returns the time slot in a time table that immediately
	precedes the time passed in.  If the time exactly matches a value
	in the time table, that slot number is returned.  This function 
	is currently valid only for 46x, C453, C473, V473, C475, and C165
	devices.

	main_device	name of base (no suffix) device
       time		time in seconds 
	table_number	time table number to search (1-WG_NUM_TABLES)
	[search_type]	type of search
			(WG_SEARCH_LE -> find slot whose time is less than
					 or equal to the target time (default),
			 WG_SEARCH_GE -> find slot whose time is greater than
					 or equal to the target time,
			 WG_SEARCH_EQUAL -> find slot whose time is equal to
					    the target time)
	[match_time]	returned matching slot time
			(default is NULL)

       This function returns status values as follows:

	CBS_INVARG		invalid root name (no blanks) or table number
	CBS_INVSIZ		invalid family size (database entry error)
	CBS_INVTYP		device is not a waveform generator
	CBS_NO_SUCH		no matching slot or family device not found
	negative value		other ACNET error
	otherwise		slot number preceeding time argument

	This function requires the following include files:

	ul_cbsaux_h:auxlib_device_h, acnet_errors_h

	Related functions:

	wg_find_time_slot_list_c, wg_get_device_c, wg_get_family_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, 
	find_time_slot_list_c, c465_get_table_c, c465_get_table_list_c,
	c465_find_level_c, c465_find_level_list_c, get_465_device,
	get_465_family, get_465_type, c465_ft_frequency_c,
	c465_ft_frequency_list_c, c465_trigger_level_c,
	c465_trigger_level_list_c, wg_scale_mdat_data_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	main_device[DEVICE_TERSE_NAME_LEN+1] = "T:QF    ";
	int	status;
	int	interrupt_level = 1;
	int	search_type = WG_SEARCH_LE;
	double	time = 1.5;
	double	match_time;

	status = wg_find_time_slot_c(main_device,time,table_number,
				     search_type,&match_time);