Beamline Instrument Software Support |
|
SPEC Macro documentation:
[ Macro Index |
BCU Home ]
|
Utilities for shared memory SPEC arrays | ||||||
[ source code | installed at | configured at ] | ||||||
See other macros in category: All | ||||||
Description:
| ||||||
Documentation:
This file contains some utilities for SPEC shared memory arrays. | ||||||
Macros:
Usage: SPS_CreateEnv (name, no_items, max_length) Create a shared environment array called name (something like xxxxx_ENV) which contains strings to be shared with other applications in the format identifier=value with maximal string length max_length. A maximum of no_items of such lines can be put into this array. SPS_PutEnv Usage: SPS_PutEnv (arr, id, value) Put the value in the shared memory array arr under the identifier id in the format id = value. SPS_GetEnv Usage: SPS_GetEnv (arr, id) Get the value from the shared memory environment array arr with the identifier id. shareddata Usage: shareddata Put scan data in shared memory. privatedata Usage: privatedata Put scan data in private memory. testimage Usage: testimage [dim] [scale] Produce a nice looking double image called image_test[dim][dim]. Use scale values between 1 and 10. testgrid Usage: testgrid [dim] [width] [height] Produce a nice looking unsigned short integer grid image called image_data. height is a scaling factor for the heigth of the grid peaks. width is the width of the individual peaks (always spaced 50 pixels) | ||||||
Internal Macros: | ||||||
Usage: SPS_scanhead This macro is executed once for every scan at the beginning of the scan SPS_scanabort Usage: SPS_scanabort This macro is executed once for every scan at the beginning of the scan SPS_onepoint Usage: SPS_onepoint This macro is executed once for every scan point testfunc Usage: testfunc(x, y) testfunctions used by testimage | ||||||
|