![]() |
Accelerator Independent Data Access / PVAccess 2.0
AIDA-PVA is the latest version of the AIDA framework. Built on top of EPICS 7 it enables client applications to programmatically access and manage any device or database on the SLAC Network using simple channel names.
|
The Header File for the Channel Provider API endpoints and endpoint-stubs MACROS. More...
#include <jni.h>
#include <descrip.h>
#include <stdbool.h>
#include <stsdef.h>
#include "slc_macros.h"
#include "msg_proto.h"
#include "errtranslate.h"
#include "aida_pva_json.h"
#include "ref.h"
#include "process_parm.h"
#include "aida_pva.h"
Go to the source code of this file.
Functions | |
int | aidaRequestBoolean (JNIEnv *env, const char *uri, Arguments arguments) |
Get a boolean. More... | |
Array | aidaRequestBooleanArray (JNIEnv *env, const char *uri, Arguments arguments) |
Get a boolean array. More... | |
char | aidaRequestByte (JNIEnv *env, const char *uri, Arguments arguments) |
Get a byte. More... | |
Array | aidaRequestByteArray (JNIEnv *env, const char *uri, Arguments arguments) |
Get a byte array. More... | |
double | aidaRequestDouble (JNIEnv *env, const char *uri, Arguments arguments) |
Get a double. More... | |
Array | aidaRequestDoubleArray (JNIEnv *env, const char *uri, Arguments arguments) |
Get a double array. More... | |
float | aidaRequestFloat (JNIEnv *env, const char *uri, Arguments arguments) |
Get a float. More... | |
Array | aidaRequestFloatArray (JNIEnv *env, const char *uri, Arguments arguments) |
Get a float array. More... | |
int | aidaRequestInteger (JNIEnv *env, const char *uri, Arguments arguments) |
Get a integer. More... | |
Array | aidaRequestIntegerArray (JNIEnv *env, const char *uri, Arguments arguments) |
Get a integer array. More... | |
long | aidaRequestLong (JNIEnv *env, const char *uri, Arguments arguments) |
Get a long. More... | |
Array | aidaRequestLongArray (JNIEnv *env, const char *uri, Arguments arguments) |
Get a long array. More... | |
short | aidaRequestShort (JNIEnv *env, const char *uri, Arguments arguments) |
Get a short. More... | |
Array | aidaRequestShortArray (JNIEnv *env, const char *uri, Arguments arguments) |
Get a short array. More... | |
char * | aidaRequestString (JNIEnv *env, const char *uri, Arguments arguments) |
Get a string. More... | |
StringArray | aidaRequestStringArray (JNIEnv *env, const char *uri, Arguments arguments) |
Get a string array. More... | |
Table | aidaRequestTable (JNIEnv *env, const char *uri, Arguments arguments) |
Get a table of data. More... | |
void | aidaServiceInit (JNIEnv *env) |
Initialise the aida service. More... | |
void | aidaSetValue (JNIEnv *env, const char *uri, Arguments arguments, Value value) |
Set a value. More... | |
Table | aidaSetValueWithResponse (JNIEnv *env, const char *uri, Arguments arguments, Value value) |
Set a value and return a table as a response. More... | |
char * | getVersion () |
Function provided by all providers to give the version string. More... | |
The Header File for the Channel Provider API endpoints and endpoint-stubs MACROS.
CMS=C_INC
Definition in file aida_pva_api.h.
#define REQUEST_STUB_ARRAY | ( | _api | ) |
API stub for AIDA-PVA array requests.
_api | the name of the API to define |
Definition at line 297 of file aida_pva_api.h.
#define REQUEST_STUB_BOOLEAN REQUEST_STUB_SCALAR(aidaRequestBoolean, int, 0) |
aidaRequestBoolean API Stub
Definition at line 253 of file aida_pva_api.h.
#define REQUEST_STUB_BOOLEAN_ARRAY REQUEST_STUB_ARRAY(aidaRequestBooleanArray) |
aidaRequestBooleanArray API Stub
Definition at line 306 of file aida_pva_api.h.
#define REQUEST_STUB_BYTE REQUEST_STUB_SCALAR(aidaRequestByte, char, 0x0) |
aidaRequestByte API Stub
Definition at line 259 of file aida_pva_api.h.
#define REQUEST_STUB_BYTE_ARRAY REQUEST_STUB_ARRAY(aidaRequestByteArray) |
aidaRequestByteArray API Stub
Definition at line 311 of file aida_pva_api.h.
#define REQUEST_STUB_DOUBLE REQUEST_STUB_SCALAR(aidaRequestDouble, double, 0.0) |
aidaRequestDouble API Stub
Definition at line 284 of file aida_pva_api.h.
#define REQUEST_STUB_DOUBLE_ARRAY REQUEST_STUB_ARRAY(aidaRequestDoubleArray) |
aidaRequestDoubleArray API Stub
Definition at line 336 of file aida_pva_api.h.
#define REQUEST_STUB_FLOAT REQUEST_STUB_SCALAR(aidaRequestFloat, float, 0.0f) |
aidaRequestFloat API Stub
Definition at line 279 of file aida_pva_api.h.
#define REQUEST_STUB_FLOAT_ARRAY REQUEST_STUB_ARRAY(aidaRequestFloatArray) |
aidaRequestFloatArray API Stub
Definition at line 331 of file aida_pva_api.h.
#define REQUEST_STUB_INTEGER REQUEST_STUB_SCALAR(aidaRequestInteger, int, 0) |
aidaRequestInteger API Stub
Definition at line 269 of file aida_pva_api.h.
#define REQUEST_STUB_INTEGER_ARRAY REQUEST_STUB_ARRAY(aidaRequestIntegerArray) |
aidaRequestIntegerArray API Stub
Definition at line 321 of file aida_pva_api.h.
#define REQUEST_STUB_LONG REQUEST_STUB_SCALAR(aidaRequestLong, long, 0) |
aidaRequestLong API Stub
Definition at line 274 of file aida_pva_api.h.
#define REQUEST_STUB_LONG_ARRAY REQUEST_STUB_ARRAY(aidaRequestLongArray) |
aidaRequestLongArray API Stub
Definition at line 326 of file aida_pva_api.h.
#define REQUEST_STUB_SCALAR | ( | _api, | |
_rtype, | |||
_r | |||
) |
API stub for AIDA-PVA scalar requests.
_api | the name of the API to define |
_rtype | the type that this API will return |
_r | the specified return value |
Definition at line 243 of file aida_pva_api.h.
#define REQUEST_STUB_SHORT REQUEST_STUB_SCALAR(aidaRequestShort, short, 0) |
aidaRequestShort API Stub
Definition at line 264 of file aida_pva_api.h.
#define REQUEST_STUB_SHORT_ARRAY REQUEST_STUB_ARRAY(aidaRequestShortArray) |
aidaRequestShortArray API Stub
Definition at line 316 of file aida_pva_api.h.
#define REQUEST_STUB_STRING REQUEST_STUB_SCALAR(aidaRequestString, char*, NULL) |
aidaRequestString API Stub
Definition at line 289 of file aida_pva_api.h.
#define REQUEST_STUB_STRING_ARRAY |
aidaRequestStringArray API stub
Definition at line 342 of file aida_pva_api.h.
#define REQUEST_STUB_TABLE |
aidaRequestTable API stub
Definition at line 352 of file aida_pva_api.h.
#define RETURN_NULL_TABLE |
Return an empty table response.
Use this if you're implementing an api that returns a Table and you've encountered an error, just after you've raised an exception.
Definition at line 380 of file aida_pva_api.h.
#define SET_STUB_TABLE |
aidaSetValueWithResponse API stub
Definition at line 370 of file aida_pva_api.h.
#define SET_STUB_VOID |
aidaSetValue API stub
Definition at line 361 of file aida_pva_api.h.
#define VERSION | ( | _version | ) |
Use this macro to define the version of the provider.
Definition at line 40 of file aida_pva_api.h.
int aidaRequestBoolean | ( | JNIEnv * | env, |
const char * | uri, | ||
Arguments | arguments | ||
) |
Get a boolean.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
In fact this is implemented by getting a short and returning true if it is 0 and false otherwise
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Get a boolean.
uri | the uri |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
arguments | the arguments |
Definition at line 43 of file AIDASLCDB_SERVER.c.
References aidaThrow(), aidaThrowNonOsException(), ascanf(), endsWith(), TO_SLC_NAME, UNABLE_TO_GET_DATA_EXCEPTION, and UNSUPPORTED_CHANNEL_EXCEPTION.
Referenced by aidaRequestTable().
Get a boolean array.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 212 of file AIDASLCDB_SERVER.c.
References aidaThrow(), aidaThrowNonOsException(), ALLOCATE_MEMORY_AND_ON_ERROR_RETURN_, ascanf(), Array::count, endsWith(), Array::items, TO_SLC_NAME, UNABLE_TO_GET_DATA_EXCEPTION, and UNSUPPORTED_CHANNEL_EXCEPTION.
Referenced by aidaRequestTable().
char aidaRequestByte | ( | JNIEnv * | env, |
const char * | uri, | ||
Arguments | arguments | ||
) |
Get a byte.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 65 of file AIDASLCDB_SERVER.c.
References aidaThrow(), aidaThrowNonOsException(), ascanf(), endsWith(), TO_SLC_NAME, UNABLE_TO_GET_DATA_EXCEPTION, and UNSUPPORTED_CHANNEL_EXCEPTION.
Referenced by aidaRequestTable().
Get a byte array.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 243 of file AIDASLCDB_SERVER.c.
References aidaThrow(), aidaThrowNonOsException(), ALLOCATE_MEMORY_AND_ON_ERROR_RETURN_, ascanf(), Array::count, endsWith(), Array::items, TO_SLC_NAME, UNABLE_TO_GET_DATA_EXCEPTION, and UNSUPPORTED_CHANNEL_EXCEPTION.
Referenced by aidaRequestTable().
double aidaRequestDouble | ( | JNIEnv * | env, |
const char * | uri, | ||
Arguments | arguments | ||
) |
Get a double.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
In fact this is implemented by getting a float and converting the return to a double
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 170 of file AIDASLCDB_SERVER.c.
References aidaThrow(), aidaThrowNonOsException(), ascanf(), CONVERT_FROM_VMS_DOUBLE, endsWith(), TO_SLC_NAME, UNABLE_TO_GET_DATA_EXCEPTION, and UNSUPPORTED_CHANNEL_EXCEPTION.
Referenced by aidaRequestTable().
Get a double array.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 418 of file AIDASLCDB_SERVER.c.
References aidaThrow(), aidaThrowNonOsException(), ALLOCATE_AND_TRACK_MEMORY_AND_ON_ERROR_RETURN_, ALLOCATE_MEMORY_AND_ON_ERROR_RETURN_, ascanf(), Array::count, endsWith(), FREE_MEMORY, FREE_TRACKED_MEMORY, Array::items, TO_SLC_NAME, TRACK_ALLOCATED_MEMORY, TRACK_MEMORY, UNABLE_TO_GET_DATA_EXCEPTION, and UNSUPPORTED_CHANNEL_EXCEPTION.
Referenced by aidaRequestTable().
float aidaRequestFloat | ( | JNIEnv * | env, |
const char * | uri, | ||
Arguments | arguments | ||
) |
Get a float.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 149 of file AIDASLCDB_SERVER.c.
References aidaThrow(), aidaThrowNonOsException(), ascanf(), endsWith(), TO_SLC_NAME, UNABLE_TO_GET_DATA_EXCEPTION, and UNSUPPORTED_CHANNEL_EXCEPTION.
Referenced by aidaRequestTable().
Get a float array.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 381 of file AIDASLCDB_SERVER.c.
References aidaThrow(), aidaThrowNonOsException(), ALLOCATE_COPY_AND_TRACK_MEMORY_AND_ON_ERROR_RETURN_, ALLOCATE_MEMORY_AND_ON_ERROR_RETURN_, ascanf(), Array::count, endsWith(), FREE_MEMORY, FREE_TRACKED_MEMORY, Array::items, TO_SLC_NAME, TRACK_ALLOCATED_MEMORY, TRACK_MEMORY, UNABLE_TO_GET_DATA_EXCEPTION, and UNSUPPORTED_CHANNEL_EXCEPTION.
Referenced by aidaRequestTable().
int aidaRequestInteger | ( | JNIEnv * | env, |
const char * | uri, | ||
Arguments | arguments | ||
) |
Get a integer.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Get a integer.
uri | the uri |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
arguments | the arguments |
Definition at line 107 of file AIDASLCDB_SERVER.c.
References aidaThrow(), aidaThrowNonOsException(), ascanf(), endsWith(), TO_SLC_NAME, UNABLE_TO_GET_DATA_EXCEPTION, and UNSUPPORTED_CHANNEL_EXCEPTION.
Referenced by aidaRequestTable().
Get a integer array.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 305 of file AIDASLCDB_SERVER.c.
References aidaThrow(), aidaThrowNonOsException(), ALLOCATE_COPY_AND_TRACK_MEMORY_AND_ON_ERROR_RETURN_, ALLOCATE_MEMORY_AND_ON_ERROR_RETURN_, ascanf(), Array::count, endsWith(), FREE_MEMORY, FREE_TRACKED_MEMORY, Array::items, TO_SLC_NAME, TRACK_ALLOCATED_MEMORY, TRACK_MEMORY, UNABLE_TO_GET_DATA_EXCEPTION, and UNSUPPORTED_CHANNEL_EXCEPTION.
Referenced by aidaRequestTable().
long aidaRequestLong | ( | JNIEnv * | env, |
const char * | uri, | ||
Arguments | arguments | ||
) |
Get a long.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
In fact this is implemented by getting an integer and then converting the return value to a long
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Get a long.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 128 of file AIDASLCDB_SERVER.c.
References aidaThrow(), aidaThrowNonOsException(), ascanf(), endsWith(), startsWith(), TO_SLC_NAME, UNABLE_TO_GET_DATA_EXCEPTION, and UNSUPPORTED_CHANNEL_EXCEPTION.
Referenced by aidaRequestTable().
Get a long array.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 342 of file AIDASLCDB_SERVER.c.
References aidaThrow(), aidaThrowNonOsException(), ALLOCATE_AND_TRACK_MEMORY_AND_ON_ERROR_RETURN_, ALLOCATE_MEMORY_AND_ON_ERROR_RETURN_, ascanf(), Array::count, endsWith(), FREE_MEMORY, FREE_TRACKED_MEMORY, Array::items, TO_SLC_NAME, TRACK_ALLOCATED_MEMORY, TRACK_MEMORY, UNABLE_TO_GET_DATA_EXCEPTION, and UNSUPPORTED_CHANNEL_EXCEPTION.
Referenced by aidaRequestTable().
short aidaRequestShort | ( | JNIEnv * | env, |
const char * | uri, | ||
Arguments | arguments | ||
) |
Get a short.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
uri | the uri |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
arguments | the arguments |
uri | the uri |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
arguments | the arguments |
uri | the uri |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
arguments | the arguments |
uri | the uri |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
arguments | the arguments |
Definition at line 86 of file AIDASLCDB_SERVER.c.
References aidaThrow(), aidaThrowNonOsException(), ascanf(), endsWith(), startsWith(), TO_SLC_NAME, UNABLE_TO_GET_DATA_EXCEPTION, and UNSUPPORTED_CHANNEL_EXCEPTION.
Referenced by aidaRequestTable().
Get a short array.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 268 of file AIDASLCDB_SERVER.c.
References aidaThrow(), aidaThrowNonOsException(), ALLOCATE_COPY_AND_TRACK_MEMORY_AND_ON_ERROR_RETURN_, ALLOCATE_MEMORY_AND_ON_ERROR_RETURN_, ascanf(), Array::count, endsWith(), FREE_MEMORY, FREE_TRACKED_MEMORY, Array::items, TO_SLC_NAME, TRACK_ALLOCATED_MEMORY, TRACK_MEMORY, UNABLE_TO_GET_DATA_EXCEPTION, and UNSUPPORTED_CHANNEL_EXCEPTION.
Referenced by aidaRequestTable().
char * aidaRequestString | ( | JNIEnv * | env, |
const char * | uri, | ||
Arguments | arguments | ||
) |
Get a string.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Allocate memory for string and it will be freed for you by framework
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 191 of file AIDASLCDB_SERVER.c.
References aidaThrow(), aidaThrowNonOsException(), ALLOCATE_MEMORY_AND_ON_ERROR_RETURN_, ALLOCATE_STRING, ascanf(), endsWith(), ON_EXCEPTION_RETURN_, startsWith(), TO_SLC_NAME, UNABLE_TO_GET_DATA_EXCEPTION, and UNSUPPORTED_CHANNEL_EXCEPTION.
Referenced by aidaRequestStringArray(), and aidaRequestTable().
StringArray aidaRequestStringArray | ( | JNIEnv * | env, |
const char * | uri, | ||
Arguments | arguments | ||
) |
Get a string array.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Get a string array.
If the primary is ASTS and the pseudo-secondary is either CTRL, STAT, VSTA, parse the text, color, and flag fields from the string returned by aidaRequestString(). The text, color, and flag substrings are then returned in an array
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 465 of file AIDASLCDB_SERVER.c.
References aidaRequestString(), aidaThrowNonOsException(), ALLOCATE_AND_TRACK_FIXED_LENGTH_STRING_AND_ON_ERROR_RETURN_, ALLOCATE_AND_TRACK_MEMORY_AND_ON_ERROR_RETURN_, ALLOCATE_MEMORY_AND_ON_ERROR_RETURN_, ALLOCATE_STRING_AND_ON_ERROR_RETURN_, ascanf(), StringArray::count, endsWith(), FREE_TRACKED_MEMORY, StringArray::items, ON_EXCEPTION_RETURN_, secondaryFromUri(), startsWith(), TRACK_ALLOCATED_MEMORY, TRACK_MEMORY, UNSUPPORTED_CHANNEL_EXCEPTION, and UNSUPPORTED_STRING_ARRAY_REQUEST.
Get a table of data.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Get a table of data.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Get a table of data.
Default is 1 BPMS: json. List of BPMs to read ["BPMS:LI02:501", "BPMS:DR12:334"] DEVS: json. List of devices to read Note: cannot specify both BPMS and DEVS
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Get a table of data.
This is the entry point for getting the klystron device status for one or more klystrons
For one klystron the uri
is KLYS:<micr><unit>:TACT
For multiple the uri
is KLYSTRONGET:TACT
and a mandatory parameter DEVICES
contains an array of klystrons to query e.g. DEVICES=["KLYS:LI31:31", "KLYS:LI31:32"]
If all of the queries fail then an exception is raised. Otherwise the following fields are returned: name
STRING device name <micr>:<unit>
opstat
BOOLEAN operation status (true = success, false = failure) status
SHORT klystron status accel
BOOLEAN is in accelerate state standby
BOOLEAN is in standby mode bad
BOOLEAN is bad? sled
BOOLEAN true is sled sleded
BOOLEAN true if sleded pampl
BOOLEAN true if pampl pphas
BOOLEAN true if pphas
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Get a table of data.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
The FILE
contains the name of the button file and is used The PRIMSTV
contains a structure with configuration for the primary step variable The SECNSTV
optionally contains a structure with configuration for the secondary step variable
First the button file is loaded and then it is executed. A table with the following fields is returned: primary
FLOAT_ARRAY value of primary step variable for this data set secondary
FLOAT_ARRAY value of secondary step variable for this data set. Omitted if no secondary step variable specified samp{n}
FLOAT_ARRAY For each sample variable found in the given FILE a column is returned. {n} is the sample var number
The labels for each column are set to the device name
Definition at line 66 of file AIDASLCBPM_SERVER.c.
References AIDA_BOOLEAN_ARRAY_TYPE, AIDA_BOOLEAN_TYPE, AIDA_BYTE_ARRAY_TYPE, AIDA_DOUBLE_ARRAY_TYPE, AIDA_FLOAT_ARRAY_TYPE, AIDA_FLOAT_TYPE, AIDA_INTEGER_ARRAY_TYPE, AIDA_INTEGER_TYPE, AIDA_LONG_ARRAY_TYPE, AIDA_SHORT_ARRAY_TYPE, AIDA_SHORT_TYPE, aidaRequestBoolean(), aidaRequestBooleanArray(), aidaRequestByte(), aidaRequestByteArray(), aidaRequestDouble(), aidaRequestDoubleArray(), aidaRequestFloat(), aidaRequestFloatArray(), aidaRequestInteger(), aidaRequestIntegerArray(), aidaRequestLong(), aidaRequestLongArray(), aidaRequestShort(), aidaRequestShortArray(), aidaRequestString(), aidaThrow(), aidaThrowNonOsException(), ALLOCATE_AND_TRACK_MEMORY_AND_ON_ERROR_RETURN_, ascanf(), Table::columnCount, Array::count, endsWith(), FREE_MEMORY, FREE_TRACKED_MEMORY, Array::items, ON_EXCEPTION_FREE_MEMORY_AND_RETURN_, ON_EXCEPTION_RETURN_, pmuFromDeviceName(), RETURN_NULL_TABLE, SPRINTF_ERROR_FREE_MEMORY_AND_RETURN_, SPRINTF_ERROR_STATUS_FREE_MEMORY_AND_RETURN_, tableAddColumn(), tableAddFixedWidthStringColumn(), tableAddSingleRowBooleanColumn(), tableAddSingleRowByteColumn(), tableAddSingleRowDoubleColumn(), tableAddSingleRowFloatColumn(), tableAddSingleRowIntegerColumn(), tableAddSingleRowLongColumn(), tableAddSingleRowShortColumn(), tableAddSingleRowStringColumn(), tableAddStringColumn(), tableCreate(), tableCreateDynamic(), TO_DGROUP, TO_LEGACY_NAME, TRACK_ALLOCATED_MEMORY, TRACK_MEMORY, UNABLE_TO_GET_DATA_EXCEPTION, and UNSUPPORTED_CHANNEL_EXCEPTION.
void aidaServiceInit | ( | JNIEnv * | env | ) |
Initialise the aida service.
Called once by the framework when starting up.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
Initialise the aida service.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
ServerInitialisationException | if the service fails to initialise |
Definition at line 42 of file AIDASLCBPM_SERVER.c.
References aidaThrow(), init(), and SERVER_INITIALISATION_EXCEPTION.
Set a value.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
value | to set |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
value | to set |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
value | to set |
Set a value.
The VALUE
argument given in value
will contain a structure containing two elements:
names
: an array of magnet namesvalues
: an array of corresponding valuese.g. { "names": [... ], "values": [... ] }
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments of type Arguments |
value | to set. Contains a structure containing two elements:
|
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
value | to set |
Set a value.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
value | to set |
Definition at line 656 of file AIDASLCDB_SERVER.c.
References aidaThrow(), aidaThrowNonOsException(), ascanf(), avscanf(), CONVERT_TO_VMS_FLOAT, FREE_MEMORY, startsWith(), TO_SLC_NAME, TRACK_ALLOCATED_MEMORY, TRACK_MEMORY, UNABLE_TO_GET_DATA_EXCEPTION, and UNABLE_TO_SET_DATA_EXCEPTION.
Set a value and return a table as a response.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
value | to set |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
value | to set |
Set a value and return a table as a response.
Then optionally performs a specified trim or perturb operation.
The VALUE
argument will contain a structure containing two elements:
names
: an array of magnet namesvalues
: an array of corresponding valuesenv | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException(env, exception, message) |
uri | the uri - MAGNETSET:BDES or MAGNETSET:BCON |
arguments | the arguments.
|
value | to set. Contains a structure containing two elements:
|
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
value | to set |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
value | to set |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
value | to set |
Definition at line 450 of file AIDASLCKLYS_SERVER.c.
References AIDA_FLOAT_TYPE, aidaThrow(), aidaThrowNonOsException(), avscanf(), CONVERT_FROM_VMS_FLOAT, CONVERT_TO_VMS_FLOAT, endsWith(), FREE_MEMORY, MICRO_LEN, ON_EXCEPTION_RETURN_, PMU_STRING_FROM_URI, PRIM_LEN, RETURN_NULL_TABLE, tableAddColumn(), tableAddFixedWidthStringColumn(), tableAddSingleRowBooleanColumn(), tableAddSingleRowDoubleColumn(), tableCreate(), TRACK_ALLOCATED_MEMORY, TRACK_MEMORY, UNABLE_TO_SET_DATA_EXCEPTION, and UNSUPPORTED_CHANNEL_EXCEPTION.
char * getVersion | ( | ) |
Function provided by all providers to give the version string.