dio_find_status_scaling_by_mask_c

	status.i4.v = dio_find_status_scaling_by_attr_id_c(device_indices.i4a.r,
							   mask.u8.v,
							   status_entries.sa.r,
							   errors.i2a.r
							   [,num_devices.i4.v])

	This routine finds a status scaling attribute for a device or a list
	of devices having a specified mask value.

	device_indices	device index or array of device indices
	mask		desired mask value
	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)

	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_attr_id_c,
	dio_find_status_scaling_attribute_c, dio_find_status_scaling_by_state_c,
	dio_find_status_scaling_attr_id_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:

	short	errors[NUM_DEVICES];
	int	status;
	static const int	device_indices[NUM_DEVICES] = {14430, 14431};
	int	num_devices = NUM_DEVICES;
	unsigned long long	mask = MASK;
	DIO_STATUS_SCALING_ENTRY	scaling_entries[NUM_DEVICES];

	status = dio_find_status_scaling_by_mask_c(device_indices,mask,
						   scaling_entries,errors,
						   num_devices);