dio_event_control_list_c

	status.i4.v = dio_event_control_list_c(events.i4a.r, command.i4.v,
					       errors.i2a.r, num_events.i4.v
					       [,clock_system.i4.v])

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

	events		event numbers to control
			(constants are in 'tclk_events')
	command		(DIO_DISABLE_EVENT -> disable the events,
			 DIO_ENABLE_EVENT -> enable the events,
			 DIO_TRIGGER_EVENT -> trigger the events)
	errors		array of returned ACNET status values
	num_events	number of events
	[clock_system]	clock system of events
			(DIO_TCLK -> Tevatron clock (default),
			 DIO_MIBS -> Main Injector beam synch,
			 DIO_TVBS -> Tevatron beam synch,
			 DIO_RRBS -> Recycler beam synch)

	This function returns status values as follows:

	OK			success
	DIO_BADARG		invalid command or system
	DIO_MEMFAIL		dynamic memory allocation failure
	negative value		ACNET format error indicating overall failure
	positive value		number of events in error

	This function requires the following include files:

	diolib_h, tclk_events_h, acnet_errors_h

	Related functions:

	dio_event_control(_c), dio_is_event_enabled_c, error_in_list(_c)

	C/C++ usage:

	short	errors[NUM_EVENTS];
	int	status;
	static const int	events[NUM_EVENTS] =
				{EVENT_TEV_ADC_COMPARE, EVENT_FLY_WIRES};
	int	command = DIO_TRIGGER_EVENT;
	int	num_events = NUM_EVENTS;
	int	clock_system = DIO_TCLK;

	status = dio_event_control_list_c(events,command,errors,num_events,
					  clock_system);