dio_find_status_scaling_attribute_c

	status.i4.v = dio_find_status_scaling_attribute_c(device_indices.i4a.r,
							  attribute.i1a.r,
							  status_entries.sa.r,
							  errors.i2a.r
							  [,num_devices.i4.v]
							  [,options.u4.v])

	This routine finds a status scaling attribute for a device or a list
	of devices corresponding to an attribute string.

	device_indices	device index or array of device indices
	attribute	desired null terminated attribute string
	status_entries	returned array of corresponding status scaling entries
			(array of structures of type DIO_STATUS_SCALING_ENTRY)
			(A value of NULL may be passed if no actual status
			 scaling entries are needed.)
	errors		returned ACNET status value or array of status values
	[num_devices]	number of devices (default is 1)
	[options]	search options
			(DIO_OPT_NONE -> no options selected (default),
			 DIO_OPT_LONG_TEXT -> only search long attribute text)

	This function returns status values as follows:

	OK			success
	DIO_BADARG		invalid number of devices passed
	DIO_MEMFAIL		memory allocation failure
	negative value		ACNET format error indicating overall failure
	positive value		number of devices in error indicating partial
				success

	This function requires the following include files:

	cnsparam_h, diolib_h, acnet_errors_h

	Related functions:

	dio_find_status_scaling_by_state_c,
	dio_find_status_scaling_by_attr_id_c, dio_find_status_scaling_attr_id_c,
	dio_find_status_scaling_by_mask_c, dio_status_scaling_info_c,
	dio_status_scaling_attributes_c, dio_is_status_attribute_value_c,
	dio_is_status_attribute_state_value_c,
	dio_is_status_attribute_value_list,
	dio_is_status_attribute_value_by_id_c,
	dio_build_status_attribute_value_list_c,
	dio_raw_to_status_attribute_value_by_id_c,
	dio_raw_to_status_state_value_by_id_c, error_in_list(_c)

	C/C++ usage:

	static const char	attribute[] = "On/Off";
	short	errors[NUM_DEVICES];
	int	status;
	static const int	device_indices[NUM_DEVICES] = {14430, 14431};
	int	num_devices = NUM_DEVICES;
	unsigned int	options = DIO_OPT_NONE;
	DIO_STATUS_SCALING_ENTRY	scaling_entries[NUM_DEVICES];

	status = dio_find_status_scaling_attribute_c(device_indices,attribute,
						     scaling_entries,errors,
						     num_devices,options);