bpm_get_tbt_crates_and_channels

	status.i4.v = bpm_get_tbt_crates_and_channels(crates.i4a.r,
						      channels.i4a.r)

	This routine retrieves BPM turn by turn detector crate and channel
	values for the machine last requested by a call to bpm_machine_c.
	A value of NULL can be passed for any of the returned arguments that
	are not needed.  The names for the crates can be retrieved using a
	call to bpm_crate_info_c.

	crates		array of turn by turn detector crate values
			(0 -> number of crates - 1)
	channels	array of turn by turn detector channel values
			(0 -> number of channels - 1)

	This function returns ACNET status values as follows:

	OK			success
	CBS_NOTYET		not yet supported for the active machine
	SQL_xxx			database access error

	This function requires the following include files:

	ul_cbsaux/bpmuti.h, acnet_errors_h

	Related functions:

	bpm_crate_info_c, bpm_machine_c, bpm_get_tbt_names, bpm_get_tbt_data_c,
	bpm_get_tbt_intensity_c, bpm_get_raw_tbt_data_c,
	bpm_enable_tbt_trigger_c, bpm_get_tbt_timing_c, bpm_set_tbt_timing_c,
	bpm_get_global_tbt_timing_c, bpm_set_global_tbt_timing_c,
	bpm_is_tbt_trigger_enabled

	C/C++ usage:

	int	status;
	int	num_detectors;
	int	*crates;
	int	*channels;

	status = bpm_get_tbt_names((char *) NULL,&num_detectors);

	if (status == OK)
	    {
	    crates = (int *) malloc(num_detectors*(sizeof(int)));
	    channels = (int *) malloc(num_detectors*(sizeof(int)));
	    status = bpm_get_tbt_crates_and_channels(crates,channels);
	    }