bpm_check_for_data_c

	status.i4.v = bpm_check_for_data_c(type.i4.v, readout_spec.s.r,
					   start_house.i4.v, num_houses.i4.v,
					   house_status.i4a.r,
					   num_ret_houses.i4.r [,times.sa.r])

	This routine checks to see if requested BPM data is ready
	for readback.

	type		type of BPM data
			(BPM_DISPLAY_FRAME -> display frame,
			 BPM_FLASH -> flash frame,
			 BPM_BACKGROUND_FLASH -> background flash frame
						 (Recycler only),
			 BPM_TBT_DATA -> turn by turn data)
	readout_spec	data readout specification
			(BPM_RR_DEVL -> structure of type
					BPM_RECYCLER_READOUT_SPEC,
			 BPM_RR_ABORT_LINE -> structure of type
					      BPM_BEAMLINE_READOUT_SPEC,
			 BPM_RECYCLER_BLT -> structure of type
					     BPM_RECYCLER_READOUT_SPEC,
			 BPM_R20_LINE -> structure of type
					 BPM_RECYCLER_READOUT_SPEC,
			 BPM_R30_LINE -> structure of type
					 BPM_RECYCLER_READOUT_SPEC,
			 BPM_MI_ABORT_LINE -> structure of type
					      BPM_BEAMLINE_READOUT_SPEC,
			 BPM_MI_BLT -> structure of type
				       BPM_MI_BLT_READOUT_SPEC,
			 BPM_P1_LINE -> structure of type
					BPM_BEAMLINE_READOUT_SPEC,
			 BPM_P2_LINE -> structure of type
					BPM_BEAMLINE_READOUT_SPEC,
			 BPM_A1_LINE -> structure of type
					BPM_BEAMLINE_READOUT_SPEC,
			 BPM_AP1_LINE -> structure of type
					 BPM_BEAMLINE_READOUT_SPEC,
			 BPM_AP3_LINE -> structure of type
					 BPM_BEAMLINE_READOUT_SPEC,
			 BPM_NUMI -> structure of type
				     BPM_NUMI_READOUT_SPEC,
			 BPM_M1_LINE -> structure of type
					BPM_BEAMLINE_READOUT_SPEC,
			 BPM_M3_LINE -> structure of type
					BPM_BEAMLINE_READOUT_SPEC)
	start_house	starting house index (starts at 0)
			(If a value of CLIB_DEFAULT_ARG is passed for this
			 argument, the set of houses requested by the
			 most recent call to bpm_request_data_c will be used.)
	num_houses	number of houses to set (use 0 for all houses)
	house_status	returned house by house status
			(The caller should call this routine again if a
			 status of RDAT_BPM_PEND is returned.)
	num_ret_houses	returned number of houses returned (A value of NULL
			can be passed for this argument if this value is
			not needed.)
	[times]		optional returned data read times
			(array of structures of type BPM_TIMESTAMP)

	This function returns ACNET status values as follows:

	OK			success
	CBS_NOTYET		current machine is not supported
	CBS_NOINIT		bpm_request_data_c was not called
				before calling this routine
	CBS_NO_SUCH		no houses available in the requested range
	otherwise		error setting readout specification or
				reading status

	This function requires the following include files:

	ul_cbsaux/bpmuti.h, acnet_errors_h

	Related functions:

	bpm_machine_c, bpm_request_data_c, bpm_wait_for_data_c,
	bpm_get_data_c, bpm_get_names, bpm_query, bpm_name_to_index_c,
	bpm_data_source_c, bpm_beam_cycle_info, blm_get_data_c,
	bpm_get_intensity_c, bpm_plot_data, bpm_save_data, bpm_set_save_file,
	bpm_get_detector_status, bpm_get_crates_and_channels

	C/C++ usage:

	int	status;
	int	type = BPM_DISPLAY_FRAME;
	int	start_house = CLIB_DEFAULT_ARG;
	int	num_houses = 0;
	int	house_status[NUM_HOUSES];
	int	num_ret_houses;
	BPM_RECYCLER_READOUT_SPEC	readout_spec;
	BPM_TIMESTAMP	times[NUM_HOUSES];

	status = bpm_check_for_data_c(type,(void *) &readout_spec,start_house,
				      num_houses,house_status,&num_houses,
				      times);