bpm_get_sample_mode

	status.i4.v = bpm_get_sample_mode(particle_plane.i4.r,
					  bunch_or_batch.i4.r
					  [,house.i1a.r])

	This routine returns which type of particle the BPM uPs are set up
	to sample (for the Tevatron) or the sample plane selected (for
	Main Injector) as well as the beam sample mode for the currently
	selected machine.  See bpm_machine_c.

	For BPM_TEVATRON:
	For BPM_MI_ABORT_LINE:
	For BPM_P2_LINE:
	For BPM_P3_LINE:
	For BPM_A1_LINE:
	For BPM_RECYCLER:
	For BPM_RR_DEVL:
	For BPM_RR_ABORT_LINE:
	For BPM_R20_LINE:
	For BPM_R30_LINE:
	For BPM_AP2_LINE:
	particle_plane	returned particle type
			(BPM_MODE_PROTON -> looking at protons,
			 BPM_MODE_PBAR -> looking at pbars)
	For BPM_MAIN_INJECTOR:
	particle_plane	returned selected detector plane
			(BPM_MODE_NORMAL -> select normal plane,
			 BPM_MODE_ORTHOGONAL -> select orthogonal plane)
			(A value of NULL can be passed for this argument
			 if this value is not needed.)
	bunch_or_batch	returned sample mode
			(BPM_MODE_BUNCH -> sampling bunches of beam,
			 BPM_MODE_BATCH -> sampling batches of beam)
			(A value of NULL can be passed for this argument
			 if this value is not needed.)
	[house]		optional specification for reading a single house
			(default is NULL)

	This function returns ACNET status values as follows:

	OK			success
	CBS_NOTYET		not supported for the currently selected
				machine
	otherwise		ACNET error

	This function requires the following include files:

	ul_cbsaux/bpmuti.h, acnet_errors_h

	Related functions:

	bpm_machine_c, bpm_set_sample_mode_c, bpm_get_names, bpm_query,
	bpm_name_to_index_c

	C/C++ usage:

	char	*house = (char *) NULL;
	int	status;
	int	particle_plane;
	int	bunch_or_batch;

	status = bpm_get_sample_mode(&particle_plane,&bunch_or_batch,house);