wg_scale_mdat_data_c

	status.i4.v = wg_scale_mdat_data_c(mdat_frame.i4.v, num_values.i4.v,
					   convert_type.i4.v, source_data.g.v,
					   dest_data.g.v, errors.i2a.r,
					   units_text.i1a.r)

	This routine converts MDAT independent table data values (breakpoints)
	for waveform generator cards (C453, C460, C465, C466, C467, C468, and
	C475).

	mdat_frame	MDAT frame number to use for the conversion
			(constants are in 'mdat')
	num_values	number of values to convert
	convert_type	type of conversion
			(WG_CONVERT_TO_SCALED -> convert raw values to
						 engineering units,
			 WG_CONVERT_TO_RAW -> convert values in engineering
					      units to raw values)
	source_data	data to convert  (Note: The data type of these
			values depends on the conversion type.  For a
			conversion of type WG_CONVERT_TO_SCALED, this
			argument should consist of "num_values" short
			integer values.  For a conversion of type
			WG_CONVERT_TO_RAW, this argument should consist
			of "num_values" float values.)
	dest_data	returned values  (Note: The data type of these
			values depends on the conversion type.  For a
			conversion of type WG_CONVERT_TO_SCALED, this
			argument should consist of "num_values" float
			values.  For a conversion of type WG_CONVERT_TO_RAW,
			this argument should consist of "num_values"
			short integer values.)
	errors		returned ACNET status value or array of returned
			status values  (Note:  A value of NULL may be passed
			for this argument if status is not needed.)
	units_text	returned units text (LEN_DEV_UNITS characters)
			(Note:  A value of NULL may be passed for this
			 argument if units text is not needed.)

	This function returns status values as follows:

	OK			success
	CBS_INVARG		invalid MDAT frame or conversion type passed
	CBS_NOTYET		requested MDAT frame is not currently supported
	CBS_MEMFAIL		memory allocation failure
	negative value		other ACNET format error
	positive value		number of scaling errors

	This function requires the following include files:

	cnsparam_h, ul_cbsaux_h:auxlib_device_h, mdat_h, acnet_errors_h

	Related functions:

	wg_scale_time_data_c, wg_get_device_c, wg_get_family_c,
	wg_find_time_slot_c, wg_find_time_slot_list_c, wg_find_table_numbers_c,
	wg_find_table_numbers_list_c, wg_get_table_numbers_c,
	wg_get_table_numbers_list_c, wg_find_level_c, wg_find_level_list_c,
	c465_find_level_c, c465_find_level_list_c, c465_get_table_c,
	c465_get_table_list_c, find_time_slot_c, find_time_slot_list_c,
	get_465_device, get_465_family, get_465_type, c465_ft_frequency_c,
	c465_ft_frequency_list_c, c465_trigger_level_c,
	c465_trigger_level_list_c, wg_scale_mdat_mults_c,
	wg_scale_mdat_selections_c, wg_read_mdat_selections_list_c,
	wg_set_mdat_selections_list_c, wg_unscale_mdat_mults_c,
	wg_unscale_mdat_selections_c, dio_get_terse_name_length,
	dio_set_terse_name_length_c

	C/C++ usage:

	char	units_text[LEN_DEV_UNITS];
	short	source_data[NUM_VALUES];
	short	errors[NUM_VALUES];
	int	status;
	int	mdat_frame = MDAT_TEV_PGM_I;
	int	num_values = NUM_VALUES;
	int	convert_type = WG_CONVERT_TO_SCALED;
	float	dest_data[NUM_VALUES];

	status = wg_scale_mdat_data_c(mdat_frame,num_values,convert_type,
				      (void *) source_data,(void *) dest_data,
				      errors,units_text);