multiwire_get_scans_list_c (ul_multiwire)

	status.i4.v = multiwire_get_scans_list_c(multiwire_names.i1a.r,
						 max_wires.i4.v,
						 num_scans.i4.v,
						 positions.i4a.r,
						 wire_data.r4a.r,
						 average_mean.r4a.r
						 peak_mean.r4a.r
						 wire_status.i4a.r,
						 calculated_data.sa.r,
						 calculated_data_status.i4a.r,
						 num_multiwires.i4.v
						 [,ftd.i4.v])

	This routine returns single-scan (up to 16) scaled data and calculation 
	data for a list of multiwires (for C192 multiwires only)

	multiwire_names	multiwire name(s)
			(MW_DEVICE_NAME_LEN characters per name)
	max_wires	maximum number of wires, that will fit in wire_data
			for per multiwire
	num_scans	number of scans, that will fit in wire_data
			it is up to 16 scans for per multiwire
	positions	returned position of requested multiwires
			(MW_POSITION_OUT	position is out,
			 MW_POSITION_HORZ	position is horizontal,
			 MW_POSITION_VERT	position is vertical,
			 MW_POSITION_INDETERM	position is indeterminent,
						as controller is off-line
			 CLIB_INVARG		invalid multiwire name
			(This is a int array of num_multiwires)
			(Note: A value of NULL may be passed for this
			argument if no positions is desired.)
	wire_data	returned single-scan scaled data 
			(This is a float array of 
			num_multiwires * num_scans * max_wires size)
			(Note: A value of NULL may be passed for this
			argument if no wire_data is desired.)
	average_mean	returned average mean 
			(This is a float array of num_multiwires)
			(Note: A value of NULL may be passed for this
			argument if no average_mean is desired.)
	peak_mean	returned maximum adc value
			(This is a float array of num_multiwires)
			(Note: A value of NULL may be passed for this
			argument if no peak_mean is desired.)
	wire_status	returned reading wires status	
			(a int array of 
			num_multiwires * num_scans * max_wires size)
			(CLIB_OK -> good data
			 returned positive wire_status:
			 MW_MISSING_WIRE -> missing wire
			 MW_NOISY_WIRE -> noisy wire
			 returned negative wire_status:
			 MW_NOT_IN_BEAM -> multiwire is OUT
			 MW_DPM_IO_ERROR -> DPM-detected I/O error
			 MW_BUF_WRONG_NUM_WIRE -> buffer contains wrong number
						  of wires
	 		 MW_BUF_WRONG_CHNL_NUM -> buffer contains wrong channel
						  number
	 		 MW_BUF_WRONG_SCAN_NUM	-> buffer contains wrong scan
						   number
	 		 MW_BUF_NOT_SINGLE_SCAN	-> buffer is not a single-scan
						   data buffer
	 		 MW_NOT_AVERAGE_BUFFER -> buffer is not an average 
						  buffer
	 		 MW_BUF_WRONG_WIRE_POS	-> buffer is for wrong chamber
						   position
	 		 MW_AVG_CALC_NOT_READY -> average calculations did not
						  finish
	 		 MW_BUF_2_ZERO_WORDS -> first two words in buffer are
						zero
	 		 MW_BUF_3_ZERO_WORDS -> first three words in buffer 
						are zero
			 CLIB_INVALID_DATA ->	if max_wires is 96 and one of
						the two planes is invalid)
			(Note: A value of NULL may be passed for this
			argument if no wire_status is desired.)
	calculated_data	returned calculated data 
			(This is an array of MW_EXT_CALCULATIONS structure
			the time stamp will be filled in NULL)
			(the array size is 
			num_multiwires * num_scans * MW_EXT_CALCULATIONS)
			(Note: A value of NULL may be passed for this
			argument if no calculated_data is desired.)
	calculated_data_status	returned reading calculated data status	
			(CLIB_OK -> good data
			 CLIB_NOTYET -> Calculations not finished)
			 CLIB_INVALID_DATA ->	if max_wires is 96 and one of
						the two planes is invalid
						then the invalid plane's
						calculated_data_status is
						CLIB_INVALID_DATA)
			(a int array of num_multiwires * num_scans size)
			(Note: A value of NULL may be passed for this
			argument if no calculated_data_status is desired.)
	num_multiwires	number of multiwires requesting data
	[ftd]		Frequency Time Descriptor
			(FTD_ONESHOT -> one shot (default),
			 FTD_DEFAULT -> use database default FTD,
			 FTD_1HZ -> 1 Hz request (Note: This value can be
				    multiplied by an integer constant to
				    retrieve data every "constant" seconds.),
			 FTD_EVENT_MASK OR'ed with TCLK event value -> read
			 on TCLK event (event constants are in 'tclk_events'))


	This function returns ACNET status values as follows:

	CLIB_OK			success
	CLIB_BUGCHK		initialization failed
	positive		the number of Multiwire OUT
	othewise		ACNET format error

       This function requires the following include files:

	ul_multiwire_h:multiwires_h, acnet_errors_h

	Related functions:

	multiwire_get_names_c, multiwire_menu_c, multiwire_get_list_c,
	multiwire_cancel_get_lst, multiwire_get_data_c,
	multiwire_detector_type_c, multiwire_num_wires_c,
	multiwire_get_position_c, multiwire_set_position_c,
	multiwire_get_power_status_c, multiwire_get_hv_status_c,
	multiwire_get_sequencer_status_c, multiwire_set_sequencer_status_c,
	multiwire_set_hv_status_c, multiwire_display_config_c,
	multiwire_display_dir_select_c

	C/C++ usage:

	char	multiwire_names[NUM_MULTIWIRES*MW_DEVICE_NAME_LEN];
	int	status;
	int	max_wires = MAX_WIRES;
	int	num_scans = NUM_SCANS;
	int	position[NUM_MULTIWIRES];
	int	wire_status[NUM_MULTIWIRES*NUM_SCANS*MAX_WIRES];
	int	calculated_data_status[NUM_MULTIWIRES*NUM_SCANS*MAX_WIRES];
	int	num_multiwires = NUM_MULTIWIRES;
	float	wire_data[NUM_MULTIWIRES*NUM_SCANS*MAX_WIRES];
	float	average_mean[NUM_MULTIWIRES];
	float	peak_mean[NUM_MULTIWIRES];
	MW_EXT_CALCULATIONS	calculated_data[NUM_MULTIWIRES*NUM_SCANS];

	status = multiwire_get_scans_list_c(multiwire_names,max_wires,
					    num_scans,position,
					    wire_data,average_mean,
					    peak_mean,wire_status,
					    calculated_data,
					    calculated_data_status,
					    num_multiwires,ftd);