dio_simulate

	status.i4.v = dio_simulate(do_fake.i4.v, auto_populate.i4.v,
				   set_read.i4.v, specs.g.v)

	This routine sets the simulation mode for all subsequent DIO use.
	This allows using DIO routines to read and set from memory rather
	than the actual devices.  In this fake mode DIO will store all the
	data in memory.  This pool of memory is refered to as "miopool" or
	MIO "datapool" in other places in the routine help. In the fake
	mode, one can specify the method of populating a reading before
	the first setting on that device has been made.	 Also, one can use
	a "set_read" mode; where scaled setttings will be unscaled and
	stored as though they where readings.  This allows one to "reflect"
	a setting value into the reading value of a device.

	do_fake		TRUE  -> DIO used in simulation mode
			FALSE -> DIO used in normal, real mode
	auto_populate	method of auto-population for simulation mode:
			(DIO_AUTOPOP_NONE -> do not auto populate,
			 DIO_AUTOPOP_DPM  -> use real data pool to populate,
			 DIO_AUTOPOP_DBM  -> use real database to populate,
			 DIO_AUTOPOP_SDA  -> use SDA file,
			 DIO_AUTOPOP_SCR  -> use Save/Restore file,
			 DIO_AUTOPOP_DL   -> use Lumberjack file)
	set_read	when in simulation or fake mode only:
			(TRUE -> settings wil be applied to the reading value
				 rather than the setting value of the device,
			 FALSE-> normal use; settings will be reflected only
				 in the setting value of the device)
			(this only effects the scaled-setting DIO routines.)
	specs		data acquistion specification depending on data source
			(DIO_AUTOPOP_NONE -> not used,
			 DIO_AUTOPOP_DPM  -> not used,
			 DIO_AUTOPOP_DBM  -> not used,
			 DIO_AUTOPOP_SDA  -> structure of type DIO_SDA_SPEC,
			 DIO_AUTOPOP_SCR  -> structure of type DIO_SR_SPEC,
			 DIO_AUTOPOP_DL   -> structure of type DIO_DL_SPEC)

	This function returns ACNET status values as follows:

	OK			success
	negative value		ACNET error

	This function requires the following include files:

	diolib_h, acnet_errors_h

	Related functions:

	mio_read, mio_set, mio_control, mio_cancel, mio_fill_status

	C/C++ usage:

	int	status;
	int	do_fake = TRUE;
	int	auto_populate = DIO_AUTOPOP_DPM;
	int	set_read = TRUE;
	void	*specs = (void *) NULL;

	status = dio_simulate(do_fake,auto_populate,set_read,specs);