![]() |
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.
|
Utility Native Provider implementation. More...
#include <descrip.h>
#include <float.h>
#include "aida_pva.h"
#include "descr.h"
#include "ref.h"
#include "crrcntl_parms.h"
#include "bpmutil_proto.h"
#include "AIDASLCUTIL_SERVER.h"
Go to the source code of this file.
Functions | |
int | aidaRequestBoolean (JNIEnv *env, const char *uri, Arguments arguments) |
Get a Boolean. More... | |
int | aidaRequestInteger (JNIEnv *env, const char *uri, Arguments arguments) |
Get an integer. More... | |
long | aidaRequestLong (JNIEnv *env, const char *uri, Arguments arguments) |
Get a integer. More... | |
short | aidaRequestShort (JNIEnv *env, const char *uri, Arguments arguments) |
Get a short. More... | |
char * | aidaRequestString (JNIEnv *env, const char *uri, Arguments arguments) |
Get a string. More... | |
Table | aidaRequestTable (JNIEnv *env, const char *uri, Arguments arguments) |
Implement Correlated Plots. More... | |
REQUEST_STUB_BYTE REQUEST_STUB_FLOAT REQUEST_STUB_DOUBLE REQUEST_STUB_BOOLEAN_ARRAY REQUEST_STUB_BYTE_ARRAY REQUEST_STUB_SHORT_ARRAY REQUEST_STUB_INTEGER_ARRAY REQUEST_STUB_LONG_ARRAY REQUEST_STUB_FLOAT_ARRAY REQUEST_STUB_DOUBLE_ARRAY REQUEST_STUB_STRING_ARRAY void | aidaServiceInit (JNIEnv *env) |
Initialise the service. More... | |
void | aidaSetValue (JNIEnv *env, const char *uri, Arguments arguments, Value value) |
Set a value: BGRP Set Variable or SCP transverse feedback. More... | |
Table | aidaSetValueWithResponse (JNIEnv *env, const char *uri, Arguments arguments, Value value) |
Set a value and return a table as a response. More... | |
Utility Native Provider implementation.
MEMBER=SLCLIBS:AIDA_PVALIB ATTRIBUTES=JNI,LIBR_NOGLOBAL
Definition in file AIDASLCUTIL_SERVER.c.
int aidaRequestBoolean | ( | JNIEnv * | env, |
const char * | uri, | ||
Arguments | arguments | ||
) |
Get a Boolean.
Get a boolean.
uri | the uri |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
arguments | the arguments |
Definition at line 100 of file AIDASLCUTIL_SERVER.c.
References aidaThrow(), TO_SLC_NAME, and UNABLE_TO_GET_DATA_EXCEPTION.
int aidaRequestInteger | ( | JNIEnv * | env, |
const char * | uri, | ||
Arguments | arguments | ||
) |
Get an integer.
Get a integer.
uri | the uri |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
arguments | the arguments |
Definition at line 88 of file AIDASLCUTIL_SERVER.c.
References aidaThrow(), TO_SLC_NAME, and UNABLE_TO_GET_DATA_EXCEPTION.
long aidaRequestLong | ( | JNIEnv * | env, |
const char * | uri, | ||
Arguments | arguments | ||
) |
Get a integer.
Get a long.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 112 of file AIDASLCUTIL_SERVER.c.
References aidaThrow(), startsWith(), TO_SLC_NAME, and UNABLE_TO_GET_DATA_EXCEPTION.
short aidaRequestShort | ( | JNIEnv * | env, |
const char * | uri, | ||
Arguments | arguments | ||
) |
Get a short.
uri | the uri |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
arguments | the arguments |
Definition at line 72 of file AIDASLCUTIL_SERVER.c.
References aidaThrow(), startsWith(), TO_SLC_NAME, and UNABLE_TO_GET_DATA_EXCEPTION.
char * aidaRequestString | ( | JNIEnv * | env, |
const char * | uri, | ||
Arguments | arguments | ||
) |
Get a string.
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 128 of file AIDASLCUTIL_SERVER.c.
References aidaThrow(), ALLOCATE_STRING, ON_EXCEPTION_RETURN_, startsWith(), TO_SLC_NAME, and UNABLE_TO_GET_DATA_EXCEPTION.
Implement Correlated Plots.
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 164 of file AIDASLCUTIL_SERVER.c.
References AIDA_FLOAT_TYPE, AIDA_INTEGER_TYPE, aidaThrowNonOsException(), ALLOCATE_AND_TRACK_MEMORY_AND_ON_ERROR_RETURN_, ascanf(), Table::columnCount, FREE_MEMORY, ON_EXCEPTION_FREE_MEMORY_AND_RETURN_, ON_EXCEPTION_RETURN_, RETURN_NULL_TABLE, SPRINTF_ERROR_FREE_MEMORY_AND_RETURN_, SPRINTF_ERROR_STATUS_FREE_MEMORY_AND_RETURN_, tableAddColumn(), tableAddFixedWidthStringColumn(), tableCreate(), tableCreateDynamic(), TRACK_ALLOCATED_MEMORY, TRACK_MEMORY, and UNABLE_TO_GET_DATA_EXCEPTION.
Initialise the service.
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 55 of file AIDASLCUTIL_SERVER.c.
References aidaThrow(), init(), and SERVER_INITIALISATION_EXCEPTION.
Set a value: BGRP Set Variable or SCP transverse feedback.
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 600 of file AIDASLCUTIL_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 |
Definition at line 617 of file AIDASLCUTIL_SERVER.c.
References aidaThrowNonOsException(), endsWith(), PMU_STRING_FROM_URI, RETURN_NULL_TABLE, UNABLE_TO_SET_DATA_EXCEPTION, and UNSUPPORTED_CHANNEL_EXCEPTION.