status.i4.v = dio_alarm_flags(device_index.i4.r, alarm_type.i4.r,
				      event_flag.i4a.r, display_flag.i4a.r,
				      logging_flag.i4a.r [,ftd.i2.r]
				      [,start_block.i4.r] [,max_blocks.i4.r]

	status.i4.v = dio_alarm_flags_c(device_index.i4.v, alarm_type.i4.v,
					event_flag.i4a.r, display_flag.i4a.r,
					logging_flag.i4a.r [,ftd.i2.v]
					[,start_block.i4.v] [,max_blocks.i4.v]

	This routine returns the value for various flags associated with
	the requested alarm block.

	device_index	device index of interest
	alarm_type	type of alarm
			(DIO_ANALOG -> analog alarm,
			 DIO_DIGITAL -> digital alarm)
	event_flag	returned event/exception flag
			(DIO_EVENT_ALARM -> alarm is an event,
			 DIO_EXCEPTION_ALARM -> alarm is an exception,
			 DIO_INVALID_DATA -> error occurred in reading data)
	display_flag	returned alarm display flag
			(DIO_ALARM_DISPLAY_ENABLED -> alarm will be displayed,
			 DIO_ALARM_DISPLAY_DISABLED -> alarm won't be displayed,
			 DIO_INVALID_DATA -> error occurred in reading data)
	logging_flag	returned alarm log flag
			(DIO_ALARM_LOG_ENABLED -> alarm will be logged,
			 DIO_ALARM_LOG_DISABLED -> alarm won't be logged,
			 DIO_INVALID_DATA -> error occurred in reading data)
	[ftd]		frequency time descriptor
			(FTD_ONESHOT -> one shot (default),
			 FTD_DEFAULT -> use database default FTD,
			 FTD_1HZ -> 1 Hz request,
			 FTD_EVENT_MASK OR'ed with TCLK event value -> read
			 on TCLK event (event constants are in tclk_events)
			 (can use the macro BUILD_EVENT_FTD(event) or
			  BUILD_EVENT_PLUS_DELAY_FTD(event,delay) in 'macro'))
	[start_block]	starting block to return (starts at 0)
			(default is 0) (maximum is DIO_MAX_ALARM_BLOCKS - 1)
	[max_blocks]	maximum number of blocks to return per device
			(default is 1) (maximum is DIO_MAX_ALARM_BLOCKS)
	[num_blocks]	returned number of blocks returned (default is NULL)

	This function returns ACNET status values as follows:

	OK			success
	otherwise		ACNET format error

	This function requires the following include files:

	cnsparam_h, diolib_h, acnet_errors_h, tclk_events_h, macro_h

	Related functions:

	dio_alarm_flags_list, dio_alarm_limits(_c), dio_alarm_dnom(_c),
	dio_alarm_events(_c), dio_alarm_tries(_c), dio_is_good(_c),
	dio_is_bypas(_c), dio_is_abort(_c), dio_is_abrt_inh(_c),

	C/C++ usage:

	short	ftd = FTD_ONESHOT;
	int	status;
	int	device_index = 14430;
	int	alarm_type = DIO_ANALOG;
	int	event_flag;
	int	display_flag;
	int	logging_flag;
	int	start_block = 0;
	int	max_blocks = 1;
	int	num_blocks;

	status = dio_alarm_flags_c(device_index,alarm_type,&event_flag,