dio_scaling_info_to_extended_pdb_c

	status.i4.v = dio_scaling_info_to_extended_pdb_c(num_pdbs.i4.v,
							 primary_indices.i4a.r,
							 common_indices.i4a.r,
							 num_constants.i4a.r,
							 constants.r8a.r,
							 primary_text.i1a.r,
							 common_text.i1a.r,
							 scaling_lengths.i4a.r,
							 scaling_offsets.i4a.r,
							 display_lengths.i4a.r,
							 display_types.i4a.r,
							 primary_minima.r8a.r,
							 primary_maxima.r8a.r,
							 common_minima.r8a.r,
							 common_maxima.r8a.r,
							 num_prim_consts.i4a.r,
							 primary_consts.r8a.r,
							 errors.i2a.r,
							 pdbs.sa.r)

	This routine builds extended reading/setting PDBs from scaling
	information.
	
	num_pdbs	number of PDBs to build
	primary_indices	primary transform index or array of indices
	common_indices	common transform index or array of indices
	num_constants	number of constants defined
			(0 - DIO_PDB_EXT_MAX_CONSTANTS)
	constants	common transform constants
			(up tp DIO_PDB_EXT_MAX_CONSTANTS constants per entry)
	primary_text	primary units text
			(LEN_DEV_UNITS characters per entry)
			(This argument can be defaulted by passing a value of
			 NULL.)
	common_text	common units text
			(LEN_DEV_UNITS characters per entry)
			(This argument can be defaulted by passing a value of
			 NULL.)
	scaling_lengths	raw data lengths for scaling (1, 2, or 4 bytes)
	scaling_offsets	raw data offsets for scaling (usually 0)
			(This argument can be defaulted by passing a value of
			 NULL.)
	display_lengths	default display lengths
			(DIO_SHORT_DISPLAY_LEN or DIO_LONG_DISPLAY_LEN
			 characters)
			(This argument can be defaulted by passing a value of
			 NULL.)
	display_types	default display types
			(DIO_STANDARD_NOTATION -> display values in standard
						  notation,
			 DIO_SCIENTIFIC_NOTATION -> display values in
						    scientific notation)
			(This argument can be defaulted by passing a value of
			 NULL.)
	primary_minima	minimum vaild primary values
			(This argument can be defaulted by passing a value of
			 NULL.)
	primary_maxima	maximum vaild primary values
			(This argument can be defaulted by passing a value of
			 NULL.)
	common_minima	minimum vaild common values
			(This argument can be defaulted by passing a value of
			 NULL.)
	common_maxima	maximum vaild common values
			(This argument can be defaulted by passing a value of
			 NULL.)
	num_prim_consts	number of primary constants defined
			(0 - DIO_PDB_MAX_PRIMARY_CONSTANTS)
			(This argument can be defaulted by passing a value of
			 NULL.)
	primary_consts	primary transform constants
			(up tp DIO_PDB_MAX_PRIMARY_CONSTANTS constants per entry)
			(This argument can be defaulted by passing a value of
			 NULL.)
	errors		returned ACNET status value or array of returned
			status values
	pdbs		returned reading/setting PDB or array of PDBs
			(structure of type PDB_RS_EXT)

	This function returns status values as follows:

	OK			success
	DIO_BADARG		invalid number of PDBs passed
	positive value		number of devices in error

	This function requires the following include files:

	diolib_h, acnet_errors_h

	Related functions:

	dio_scaling_info_to_pdb_c, dio_pdb_to_scaling_info_c,
	dio_scaling, dio_is_display_dec(_c), dio_is_display_short(_c),
	dio_scaling_len(_c), dio_scaling_length_list_c,
	dio_scaling_transforms_c, dio_units_text_c, dio_get_pdb,
	dio_pdb_sts, dio_pdb_ctl, dio_get_historic_scaling_c,
	dio_data_type_info_c, error_in_list(_c)

	C/C++ usage:

	char	primary_text[NUM_PDBS][LEN_DEV_UNITS];
	char	common_text[NUM_PDBS][LEN_DEV_UNITS];
	short	errors[NUM_PDBS];
	int	status;
	int	num_pdbs = NUM_PDBS;
	int	primary_indices[NUM_PDBS];
	int	common_indices[NUM_PDBS];
	int	num_constants[NUM_PDBS];
	int	scaling_lengths[NUM_PDBS];
	int	scaling_offsets[NUM_PDBS];
	int	display_lengths[NUM_PDBS];
	int	display_types[NUM_PDBS];
	int	num_prim_consts[NUM_PDBS];
	double	constants[NUM_PDBS*DIO_PDB_EXT_MAX_CONSTANTS];
	double	primary_minima[NUM_PDBS];
	double	primary_maxima[NUM_PDBS];
	double	common_minima[NUM_PDBS];
	double	common_maxima[NUM_PDBS];
	double	primary_consts[NUM_PDBS*DIO_PDB_MAX_PRIMARY_CONSTANTS];
	PDB_RS_EXT	pdbs[NUM_PDBS];

	status = dio_scaling_info_to_extended_pdb_c(num_pdbs,primary_indices,
						    common_indices,
						    num_constants,constants,
						    (char *) primary_text,
						    (char *) common_text,
						    scaling_lengths,
						    scaling_offsets,
						    display_lengths,
						    display_types,
						    primary_minima,
						    primary_maxima,
						    common_minima,common_maxima,
						    num_prim_consts,
						    primary_consts,errors,pdbs);