dio_event_control(_c)

	status.i4.v = dio_event_control(event.i4.r, command.i4.r)
					[,clock_system.i4.r])

	status.i4.v = dio_event_control_c(event.i4.v, command.i4.v
					  [,clock_system.i4.v])

	This routine allows one to enable, disable, or trigger system
	clock events.

	event		event number to control (constants are in 'tclk_events')
	command		(DIO_DISABLE_EVENT -> disable an event,
			 DIO_ENABLE_EVENT -> enable an event,
			 DIO_TRIGGER_EVENT -> trigger an event)
	[clock_system]	clock system of event
			(DIO_TCLK -> Tevatron clock (default),
			 DIO_MIBS -> Main Injector beam synch,
			 DIO_TVBS -> Tevatron beam synch,
			 DIO_RRBS -> Recycler beam synch)

	This function returns ACNET status values as follows:

	OK			success
	DIO_BADARG		invalid command or system
	DIO_NO_SUCH		invalid event
	DIO_INVDBDAT		no device corresponding to clock event
	otherwise		error sending clock event command

	This function requires the following include files:

	diolib_h, tclk_events_h, acnet_errors_h

	Related functions:

	dio_event_control_list_c, dio_is_event_enabled_c

	C/C++ usage:

	int	status;
	int	event = EVENT_TEV_ADC_COMPARE;
	int	command = DIO_TRIGGER_EVENT;
	int	clock_system = DIO_TCLK;

	status = dio_event_control_c(event,command,clock_system);