blt_get_pos_device
status.i4.v = blt_get_pos_device(machine.i4.v, particle.i4.v,
bunch.i4.v, size.i4.v, request.s.r)
This routine accepts an integer indicating the machine to be viewed,
an integer indicating the particle (proton or pbar) an integer
indicating the bunch to be viewed, an integer indicating the
number of datapoints to return with a maximum of 1024, and a
data structure to be filled with BLT positions. Unlike blt_get_pos
this function calls the separately created device arrays for
the SDA data collection. CURRENTLY THIS WILL ONLY WORK WITH THE
BLT_TEST FRONT END. Any attempts to use other front ends will generate
errors.
machine BLT_TEVATRON, BLT_MAIN_INJECTOR, BLT_TEST or
BLT_RECYCLER as defined in ul_cbsaux:bltuti.h
particle BLT_PROTON or BLT_PBAR
bunch bunch to be viewed this number must be
between 0 and BLT_MAX_BATCH which at this time is
valued at 35.
size 0 to 1024 position data points to be retrieved
request reference to a stucture of type BLT_POS to be
filled with the requested data
It makes the appropriate calls, fills the structure and returns.
This function returns ACNET status values as follows:
OK positions were collected without error.
DIO_ERROR positions were collected with errors.
This function requires the following include files:
ul_cbsaux_h:bltuti_h, ul_clib_h:acnet_errors_h
Related functions:
blt_get_data, blt_get_pos, blt_activate_spec,
blt_is_fresh, blt_get_tag
C/C++ usage:
int status;
int machine = BLT_TEVATRON;
int particle = BLT_PROTON;
int bunch = 0;
int size = 1024;
BLT_POS positionSet;
status = blt_get_pos(machine,particle,bunch,size,&dataSet);