abort_loop_is_up_c
status.i4.v = abort_loop_is_up_c(machine.i4.v, data_event.i1a.r,
is_up.i4.r)
This routine determines if a given abort loop is up.
machine desired machine
(ABORT_MAIN_INJECTOR -> Main Injector,
ABORT_RECYCLER -> Recycler,
ABORT_P1_LINE -> P1 line,
ABORT_P2_LINE -> P2 line,
ABORT_P3_LINE -> P3 line,
ABORT_SWYD -> Switchyard,
ABORT_MINIBOONE -> MiniBooNE beam line,
ABORT_NUMI -> NuMI beam line,
ABORT_MUON -> Muon campus,
ABORT_TEST -> test system)
data_event requested data event
(If a value of NULL is passed for this argument,
a one shot reading will be performed.)
is_up abort loop status
(TRUE -> loop is up,
FALSE -> loop is down)
This function returns status values as follows:
OK success
CLIB_NOTYET abort system is not yet supported
CLIB_BUGCHK loop check information is invalid
DIO_MEMFAIL dynamic memory allocation failure
DIO_BADARG invalid input specification passed
DIO_xxx database or datapool error
This function requires the following include files:
ul_cbsaux_h:auxlib_misc_h, acnet_errors_h
Related functions:
abort_read_single_module_c, abort_read_single_module_by_name_c,
abort_mask_control_c, abort_curr_source_control_c,
abort_get_device_c, abort_mask_group_c, abort_system_info_c,
abort_system_display_coords_c, abort_system_num_modules_c,
abort_system_devices_c, abort_system_module_data_c,
abort_system_reset_c
C/C++ usage:
static const char data_event[] = "i";
int status;
int machine = ABORT_MAIN_INJECTOR;
int is_up;
status = abort_loop_is_up_c(machine,data_event,&is_up);