Download XIA Handel library

Transcript
name
value
Name from table above corresponding to the desired type of DSP parameter information.
Value to set the DSP parameter information to, cast into a void *. See the Usage section for
examples of using void pointers in this context.
Return Codes:
Code
Description
XIA_INVALID_DETCHAN
Specified detChan does not exist or is not associated
with a known module.
Board type corresponding to detChan does not exist
in Handel
Error reported by Xerxes routine called by Handel
detChan is set, not a single detChan
Internal Handel error. Contact XIA.
XIA_UNKNOWN_BOARD
XIA_XERXES
XIA_BAD_TYPE
XIA_UNKNOWN
Usage:
int status;
unsigned short numParams = 0;
unsigned short i;
unsigned
unsigned
unsigned
unsigned
short
short
short
short
*values
*access
*lowBounds
*highBounds
=
=
=
=
NULL;
NULL;
NULL;
NULL;
char **names = NULL;
/* Assume that a system has been loaded and
* that xiaStartSystem() has been called.
*/
status = xiaGetNumParams(0, &numParams);
if (status != XIA_SUCCESS) {
/* ERROR getting number of DSP parameters */
}
names = (char **)malloc(numParams * sizeof(char *));
if (names == NULL) {
/* Out of memory trying to create names */
}
for (i = 0; i < numParams, i++) {
names[i] = (char *)malloc(MAXSYMBOL_LEN * sizeof(char));
if (names[i] == NULL) {
81