mirg_cnv_time_energy (ul_mirg)

	status.i4.v = mirg_cnv_time_energy(time_value.r4.v, energy.r4.r,
					   slope.r4.r, mi_reset.i4.v, 

	This routine returns an energy value when given a Main Injector cycle

	time_value	Main Injector cycle time in seconds
	energy		Main Injector energy in GeV
	slope		Slope of the curve at this point  (Specify NULL as
			the value if the slope is 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_INVARG	The time was either negative, or exceeded the length
			of the cycle.  The first or last energy value in the 
			table will be returned.
	SQL_xxx		Database error

	This function requires the following include files:

	ul_mirg_h:mirg_h, acnet_errors_h, tclk_events_h

	Related functions:

	mirg_max_energy, mirg_min_energy, mirg_min_time

	C usage:

	int	status;
	float	time_value = 5.0;
	int	reset_event = EVENT_MI_RESET_REV_INJ;
	int	file_num = MIRG_ACTIVE_FILE;
	float	energy;
	float	slope;

	status = mirg_cnv_time_energy(time_value, &energy, &slope,
					reset_event, file_num);