model_db_set_machine (ul_model)

	status.i4.v = model_db_set_machine(machine.i4.v, lattice.i4.v)

	This routine selects a particular machine and lattice. These
	parameters are then used in subsequent model_db_xxx calls.
	All calls to other model_db_XXX routines will get data for this
	machine/lattice configuration until another call to
	model_db_set_machine is made.  This entry point is perfectly
	valid, but it is encouraged to switch to the entry point
	model_db_set_machine_cpp.  In fact, this entry point uses this
	entry point.

	machine		machine you wish to get data from
			(MODEL_TEV_RUN_I -> Tevatron Run I,
			 MODEL_TEV -> Tevatron Collider mode,
			 MODEL_TEV_FIXED_TARGET -> Tevatron fixed target mode,
			 MODEL_MAIN_INJECTOR-> Main Injector,  
			 MODEL_8GEV_LINE -> MI-8 Line,
			 MODEL_RECYCLER -> Recycler,
			 MODEL_ACCUMULATOR -> Accumulator,
			 MODEL_AP2_LINE -> AP2 Line,
			 MODEL_400MEV_LINE -> 400 MeV Line)
			(constants are in 'ul_model:model_config')
	lattice		lattice configuration to get data from
			(valid values depend on the choice of machine)
			(constants are in 'ul_model:model_config')

	This function returns ACNET status values as follows:

	OK			success
	CBS_INVARG		invalid machine/lattice value
	otherwise		ACNET format error code

	This function requires the following include files:

	ul_model_h:model_config_h, acnet_errors_h

	Related functions:

	model_db_set_machine_cpp, model_db_query, model_db_query_name

	C/C++ usage:

	int	status;
	int	machine = MODEL_MAIN_INJECTOR;
	int	lattice = MI_8_GEV;

	status = model_db_set_machine(machine,lattice);