mirg_cnv_energy_time (ul_mirg)

	status.i4.v = mirg_cnv_energy_time(energy.r4.v, time_values.r4.r, 
					   max_return.u4.v, num_return.u4.r,
					   slopes.r4.r, mi_reset.i4.v,
					   file_num.i4.v)

	This routine returns a list of Main Injector cycle times that
	correspond to the given energy value.

	energy		Main Injector energy in GeV
	time_values	Array of Main Injector cycle times in seconds
	max_return	Number of entries in the above array
			(A value of 5 will be sufficient in all but extremely
			unusual cases.  A value of MIRG_MAX_TIMES is
			guaranteed to be sufficient.)
	num_return	Number of time values returned  (A value of NULL can
			be passed if the caller does not need the value.)
	slopes		Slope of the curve at each point  (Specify NULL as
			the value if the slopes are not needed.)
	mi_reset	A Main Injector reset event
	file_num	Specifies the file to use as the data source
			(Use MIRG_ACTIVE_FILE to specify the active file.)

	This function returns ACNET status values as follows:

	CBS_OK			Success
	CLIB_MORE_VALUES	Success. More values were found than would fit
				in the time array.
	CLIB_INVARG		The specified energy does not occur during the
				cycle.
	SQL_xxx			Database error

	Note:  If an error status is returned, then the time array is not
	touched, and the "num_return" argument will be set to zero.

	This function requires the following include files:

	ul_mirg_h:mirg_h, acnet_errors_h, tclk_events_h

	Related functions:

	mirg_cnv_time_energy
	mirg_max_energy, mirg_min_energy, mirg_min_time

	C usage:

	int	status;
	float	energy = 149.9;
	int	reset_event = EVENT_MI_RESET_REV_INJ;
	int	file_num = MIRG_ACTIVE_FILE;
	float	time_values[MIRG_MAX_TIMES];
	float	slopes[MIRG_MAX_TIMES];
	size_t	num_return;

	status = mirg_cnv_energy_time(energy, time_values, MIRG_MAX_TIMES,
				      &num_return, slopes, reset_event,
				      file_num);