status.i4.v = dio_memory_write_c(num_devices.i4.v,
				 	 properties.i2a.r, lengths.i4a.r,
					 offsets.i4a.r, values.r8a.r,
					 errors.i2a.r, options.u4.v)

	This routine writes scaled data into the current DIO memory pool.
	No values will be written with partial success within a list
	of devices.

	num_devices	number of devices to write
	device_indices	device indices to write
	properties	property indices to write (constants are in 'dbprops')
			(PRREAD -> reading property,
			 PRSET -> setting property)
	lengths		data lengths in bytes
	offsets		data offsets in bytes 
	values		scaled write values
	errors		returned device errors
	options		write options (not used)

	This function returns ACNET status values as follows:

	OK			success
	negative value		overall ACNET error
	positive value		number of devices in error

	This function requires the following include files:

	dbprops_h, diolib_h, acnet_errors_h

	Related functions:

	dio_memory_set_c, dio_memory_set_raw_c, dio_memory_set_array_c,
	dio_memory_set_populate_c, dio_memory_read_raw_c, dio_memory_get_raw_c,
	dio_memory_read_c, dio_memory_get_c, dio_memory_get_array_c,
	dio_memory_control_c, dio_memory_cancel_c, dio_memory_populate_c,
	dio_memory_populate_query, dio_memory_pool_name_to_id_c,

	C/C++ usage:

	short	errors[NUM_DEVICES];
	static const short	properties[NUM_DEVICES] = {PRSET, PRSET};
	int	status;
	int	num_devices = NUM_DEVICES;
	static const int	device_indices[NUM_DEVICES] = {14430, 14431};
	static const int	lengths[NUM_DEVICES] = {0, 0};
	static const int	offsets[NUM_DEVICES] = {0, 0};
	unsigned int	options = 0;
	double	values[NUM_DEVICES] = {1.0, 2.0};

	status = dio_memory_write_c(num_devices,device_indices,properties,