tlg_cycle_length

	count.i4.v = tlg_cycle_length(machine.e.v, events.i4p.r,
				      length.r4p.r
				      [,source.e.v])

	This routine reads the time line generator module (TLG) and gets all
	the cycle lengths and cycle sequences for the specified machine.

	machine		desired machine
			(TlgUti::TLG_BOOSTER	-> Booster,
			 TlgUti::TLG_MI		-> Main Injector,
			 TlgUti::TLG_TEVATRON	-> Tevatron,
			 TlgUti::TLG_ACCUMULATOR-> Accumulator,
			 TlgUti::TLG_DEBUNCHER	-> Debuncher,
			 TlgUti::TLG_RECYCLER	-> Recycler,
			 TlgUti::TLG_SWITCHYARD	-> Switchyard,
			 TlgUti::TLG_NUMI	-> NuMI,
			 TlgUti::TLG_MTA	-> MTA)
	events		returns address of the array which contains cycle
			sequence for specified machine
	length		returns address of the array which contains cycle
			length between events
	source		optional. Desired source for the timeline data
			(TlgUti::Oper -> Active timeline front end (Default),
			 TlgUti::Test -> Test timeline front end)

	The returned events and length arrays are owned by this routine and
	must not be freed by the caller.

	This function returns status values as follows:

	CLIB_INVARG		machine code not recognized
	CLIB_TIMEOUT		DPM returned DPM_PEND status.
	DIO_xxx			failure reading TLG module
	otherwise		number of cycles for specified machine
				in the current TLG table (may be zero)

	This function requires the following include files:

	tlguti_h, cbslib_h, acnet_errors_h

	Related functions:

	tlg_min_cycle_length_c, tlg_max_cycle_length_c, tlg_supercycle_length,
	tlg_event_times_c, tlg_get_reset_info_c

	C/C++ usage:

	TlgUti::machine_t	machine = TlgUti::TLG_MI;
	int			num_cycles;
	int			*events;
	float			*length;

	num_cycles = tlg_cycle_length(machine,&events,&length);