mirg_max_energy (ul_mirg)

	status.i4.v = mirg_max_energy(energy.r4.r, mi_reset.i4.v,

	This routine returns the maximum energy to be found in the ramp table
	associated with the given reset event.

	energy		The maximum energy.
	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 ramp table contains no data.
	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_min_energy, mirg_max_time, mirg_min_time
	mirg_cnv_energy_time, mirg_cnv_time_energy

	C usage:

	int	status;
	float	energy;
	int	reset_event = EVENT_MI_RESET_REV_INJ;
	int	file_num = MIRG_ACTIVE_FILE;

	status = mirg_max_energy(&energy, reset_event, file_num);