blm_set_abort_mask_c
status.i4.v = blm_set_abort_mask_c(num_blms.i4.v, names.i1a.r,
state.i4.v, type.i4.v, masks.i2a.r,
errors.i2a.r)
This routine allows the caller to enable/disable individual BLMs
from causing aborts for the machine last requested by a call to
bpm_machine_c.
num_blms number of BLMs to set the abort mask for
names ASCII detector name or array of detector names
(DEVICE_NAME_LEN characters)
state state number to set abort masks for
type type of loss to mask/unmask
(BLM_IMMEDIATE_LOSSES -> immediate losses,
BLM_FAST_LOSSES -> fast losses,
BLM_SLOW_LOSSES -> slow losses,
BLM_VERY_SLOW_LOSSES -> very slow losses,
BLM_INTEGRATED_LOSSES -> integrated losses)
masks abort mask value or array of mask values
(BLM_ABORT_ENABLE -> enable the corresponding BLM
to generate aborts,
BLM_ABORT_DISABLE -> disable the corresponding BLM
from generating aborts)
errors returned array of setting status values
This function returns status values as follows:
OK success
CBS_NOTYET not supported for the currently selected
machine
CBS_INVARG invalid detector requested
positive value number of settings in error
otherwise ACNET error
This function requires the following include files:
ul_cbsaux/bpmuti.h, acnet_errors_h
Related functions:
bpm_machine_c, blm_get_house_abort_config_c, blm_set_abort_threshold_c,
blm_set_abort_multiplicity_c, blm_num_abort_states,
bpm_num_machine_states, blm_get_abort_status_c,
blm_get_abort_info_c, blm_get_names, blm_query,
blm_name_to_index_c, blm_get_abort_map, blm_set_abort_map_c,
blm_get_data_c, blm_get_locations, blm_get_tbt_data_c,
blm_get_tbt_list_data_c
C/C++ usage:
static const char names[DEVICE_NAME_LEN+1] = "I:LM100";
static const short masks[NUM_BLMS] = {BLM_ABORT_ENABLE};
short errors[NUM_BLMS];
int status;
int num_blms = NUM_BLMS;
int state = 1;
int type = BLM_IMMEDIATE_LOSSES;
status = blm_set_abort_mask_c(num_blms,names,state,type,masks,errors);