dio_set_alarm_c

	status.i4.v = dio_set_alarm_c(device_index.i4.v, alarm_type.i4.v,
				      alarm_block.i1a.r [,start_block.i4.v]
				      [,num_blocks.i4.v])

	This routine sends alarm blocks to a front end.

	device_index	device index of interest
	alarm_type	type of alarm
			(DIO_ANALOG -> analog alarm,
			 DIO_DIGITAL -> digital alarm)
	alarm_block	alarm blocks to send (20 bytes per block)
			(structures of type ANALOG_ALARM_BLOCK or
			 DIGITAL_ALARM_BLOCK)
	[start_block]	starting block to set (starts at 0)
			(default is 0) (maximum is DIO_MAX_ALARM_BLOCKS - 1)
	[num_blocks]	number of blocks to set
			(default is 1) (maximum is DIO_MAX_ALARM_BLOCKS)

	This function returns ACNET status values as follows:

	OK			success
	DIO_BADARG		invalid starting block or number of blocks
	DIO_NO_SUCH		requested alarm block does not exist
	otherwise		ACNET format error

	This function requires the following include files:

	diolib_h, cns_data_structs_h, acnet_errors_h

	Related functions:

	dio_get_alarm_c, dio_get_alrm_lst, dio_cancel_alarm(_c),
	dio_extract_alarm_info_c, dio_get_db_alarm(_c),
	DIO_ALARM_IS_ABORT, DIO_ALARM_IS_ABORT_INHIBIT,
	DIO_ALARM_IS_DISPLAYED, DIO_ALARM_IS_LOGGED, DIO_ALARM_IS_EVENT,
	DIO_ALARM_IS_HIGH, DIO_ALARM_IS_LOW, DIO_ALARM_LIMIT_CLASS,
	DIO_ALARM_IS_DIGITAL, DIO_ALARM_LIMIT_SIZE, DIO_ALARM_IS_BAD,
	DIO_ALARM_IS_ENABLED

	C/C++ usage:

	int	status;
	int	device_index = 14430;
	int	alarm_type = DIO_ANALOG;
	int	start_block = 0;
	int	num_blocks = 1;
	ANALOG_ALARM_BLOCK	alarm_block;

	status = dio_set_alarm_c(device_index,alarm_type,(char *) &alarm_block,
				 start_block,num_blocks);