bpm_calculate_rms_dpoverp_c

	status.i4.v = bpm_calculate_rms_dpoverp_c(data_view.u4.v,
						  num_frames.i4.v
						  horz_pos.r4a.r,
						  horz_status.i1a.r,
						  vert_pos.r4a.r,
						  vert_status.i1a.r,
						  horz_rms.r4a.r,
						  vert_rms.r4a.r,
						  dpoverp.r4a.r)

	This routine calculates BPM RMS and delta p / p values.

	data_view	data view used to retrieve the BPM data
			(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_AP1 -> P1, P2, and AP1 lines (P1 line),
			 BPM_VIEW_P1_P2_AP1_AP3	-> P1, P2, AP1, amd AP3 lines
						   (P1 line),
			 BPM_VIEW_P1_P2_AP1_AP2	-> P1, P2, AP1, amd AP2 lines
						   (P1 line),
			 BPM_VIEW_AP1_ONLY -> AP1 line only (AP1 line),
			 BPM_VIEW_AP1_AP2 -> AP1 and AP2 lines (AP1 line),
			 BPM_VIEW_AP1_AP3 -> AP1 and AP3 lines (AP1 line))
	num_frames	number of frames
	horz_pos	array of horizontal position values in millimeters
	horz_status	array of horizontal position detector status values
			(BPM_OK -> successful read,
			 BPM_INVALID ->invalid data,
			 BPM_ALARM -> reading was above alarm limit,
			 BPM_ABORT -> reading was above abort limit)
	vert_pos	array of vertical position values in millimeters
	vert_status	array of vertical position detector status values
			(may be same status values as for horizontal)
	horz_rms	returned horizontal RMS values
	vert_rms	returned vertical RMS values
	dpoverp		returned delta p / p values (from horizontal data only)

	This function returns ACNET status values as follows:

	OK			success
	CBS_INVARG		invalid number of frames requested
	otherwise		DIO or SQL error

	This function requires the following include files:

	ul_cbsaux/bpmuti.h, acnet_errors_h

	Related functions:

	bpm_machine_c, bpm_get_data_c, bpm_get_calculation_masks_c,
	bpm_set_calculation_masks_c, bpm_get_names, bpm_query,
	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:

	char		horz_status[NUM_BPMS][NUM_FRAMES];
	char		vert_status[NUM_BPMS][NUM_FRAMES];
	int		status;
	int		num_frames = NUM_FRAMES;
	unsigned int	data_view = BPM_VIEW_DEFAULT;
	float		horz_pos[NUM_BPMS][NUM_FRAMES];
	float		vert_pos[NUM_BPMS][NUM_FRAMES];
	float		horz_rms[NUM_FRAMES];
	float		vert_rms[NUM_FRAMES];
	float		dpoverp[NUM_FRAMES];

	status = bpm_calculate_rms_dpoverp_c(data_view,num_frames,horz_pos,
					     horz_status,vert_pos,vert_status,
					     horz_rms,vert_rms,dpoverp);