status.i4.v = blm_query(num_monitors.i4.r [,data_view.u4.v])

	This routine returns the number of beam loss monitors (BLMs) per
	frame for the currently selected machine.

	num_monitors	returned number of loss monitor values per frame
	[data_view]	data view requested which may result in data being
			returned for multiple machines
			(BPM_VIEW_DEFAULT -> single machine view (default),
			 BPM_VIEW_P1_ONLY -> P1 Line only (P1 Line),
			 BPM_VIEW_P1_P2 -> P1 and P2 lines (P1 Line),
			 BPM_VIEW_P1_P2_M1 -> P1, P2, and M1 lines (P1 Line),
			 BPM_VIEW_P1_P2_M1_M3 -> P1, P2, M1, amd M3 lines
						 (P1 Line),
			 BPM_VIEW_P1_P2_P3 -> P1, P2, and P3 lines (P1 Line),
			 BPM_VIEW_M1_ONLY -> M1 Line only (M1 Line),
			 BPM_VIEW_M1_M3 -> M1 and M3 lines (M1 Line))

	This function returns ACNET status values as follows:

	OK			success
	CBS_INVARG		invalid data view specified
	SQL_xxx			error reading BPM configuration information

	This function requires the following include files:


	Related functions:

	bpm_machine_c, blm_get_names, blm_name_to_index_c, blm_get_data_c

	C/C++ usage:

	int	status;
	int	num_monitors;
	unsigned int	data_view = BPM_VIEW_DEFAULT;

	status = blm_query(&num_monitors,data_view);