dio_scaling_info_to_pdb_c

	status.i4.v = dio_scaling_info_to_pdb_c(num_pdbs.i4.v,
						primary_indices.i4a.r,
						common_indices.i4a.r,
						num_constants.i4a.r,
						constants.r4a.r,
						primary_text.i1a.r,
						common_text.i1a.r,
						scaling_lengths.i4a.r,
						display_lengths.i4a.r,
						display_types.i4a.r,
						controlled_set.i4a.r,
						is_motor.i4a.r,
						errors.i2a.r, pdbs.sa.r)

	This routine builds 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_NUM_SCALING_CONSTANTS)
	constants	common transform constants
			(up tp DIO_NUM_SCALING_CONSTANTS single precision real
			 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)
	display_lengths	default display lengths
			(DIO_SHORT_DISPLAY_LEN or DIO_LONG_DISPLAY_LEN
			 characters)
	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.)
	controlled_set	controlled setting flags (Note: This is only
			meaningful for the setting property.)
			(TRUE -> device is a controlled setting,
			 FALSE -> device is not a stepper motor)
			(This argument can be defaulted by passing a value of
			 NULL.)
	is_motor	motor control flags (Note: This is only
			meaningful for the setting property.)
			(TRUE -> device is a stepper motor,
			 FALSE -> device is not a stepper motor)
			(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)

	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_extended_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	data_lengths[NUM_PDBS];
	int	scaling_lengths[NUM_PDBS];
	int	display_types[NUM_PDBS];
	int	controlled_set[NUM_PDBS];
	int	is_motor[NUM_PDBS];
	float	constants[NUM_PDBS*DIO_NUM_SCALING_CONSTANTS];
	PDB_RS	pdbs[NUM_PDBS];

	status = dio_scaling_info_to_pdb_c(num_pdbs,primary_indices,
					   common_indices,num_constants,
					   constants,(char *) primary_text,
					   (char *) common_text,
					   scaling_lengths,display_lengths,
					   display_types,controlled_set,
					   is_motor,errors,pdbs);