dio_get_device_c

	status.i4.v = dio_get_device_c(device_index.i4.v, property.i4.v,
				       value.r8.r, ftd.i4.v, length.i4.v,
				       offset.i4.v, units.i1a.r, options.u4.v)

	This routine returns scaled data (engineering units) for a specified
	device/property.  Array device retrieval is possible.  You must have
	an array large enough to accept the "value"s.  Do not use this routine
	for table devices (ramp cards, etc).  Use the routine td_read_one(_c)
	instead.  If "device_index" is an array device, the routine
	dio_get_array_device_c can be used.  If you are getting data for
	several devices, it's better to use dio_bld_get(_c) and then
	dio_get_lst.  The routine, dio_tuner(_c), can be used to adjust
	reading timeout values if necessary.

	device_index	device index
	property	device property (constants are in 'dbprops')
			(PRREAD -> reading property,
			 PRSET -> setting property)
	value		returned value
	ftd		frequency/time that data is collected
			(FTD_ONESHOT -> one shot,
			 FTD_DEFAULT -> use database default FTD,
			 FTD_1HZ -> 1 Hz request (Note: This value can be
				    multiplied by an integer constant to
				    retrieve data every "constant" seconds.),
			 FTD_EVENT_MASK OR'ed with TCLK event value -> read
			 on TCLK event (event constants are in 'tclk_events')
			 (can use the macro BUILD_EVENT_FTD(event) or
			  BUILD_EVENT_PLUS_DELAY_FTD(event,delay) in 'macro'))
	length		data length in bytes
			(Passing a value of 0 results in retrieving the
			 database minimum size for the requested property.)
	offset		data offset in bytes
	units		property's units text (LEN_DEV_UNITS characters)
			(A value of NULL can be passed for this argument
			 if units text is not needed.)
	options		data retrieval options (not used)

	This function returns ACNET status values as follows:

	OK			success
	DIO_MEMFAIL		memory allocation failure
	DIO_BADARG		invalid number of arguments passed
	DIO_SCALEFAIL		no scaling information available
	negative value		ACNET format error

	This function requires the following include files:

	cnsparam_h, dbprops_h, diolib_h, acnet_errors_h, tclk_events_h, macro_h

	Related functions:

	dio_get_dev(_c), dio_can_get(_c), dio_get_raw(_c), dio_value_text_c,
	dio_get_device_list_c, dio_get_lst, dio_get_directed_list,
	dio_set_dev(_c), td_read_one(_c), dio_get_array_device_c,
	dio_get_array_device_double_c, dio_tuner(_c)

	C/C++ usage:

	char	units[LEN_DEV_UNITS];
	int	status;
	int	device_index = 14430;
	int	property = PRSET;
	int	ftd = FTD_ONESHOT;
	int	length = 0;
	int	offset = 0;
	unsigned int	options = 0;
	double	value;

	status = dio_get_device_c(device_index,property,&value,ftd,
				  length,offset,units,options);