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.
Loading...
Searching...
No Matches
aidapvafninit.m
1% There are two types of Globals in matlab. Global-globals only work when not inside a function
2% so we need to do the same thing inside a function to create function-globals.
3% These globals are for use in any function. After this you simply call `aidapva` to
4% import the symbols into your scope
5% Note that here we need to define ALL API artifacts because functions won't benefit from the imports at the
6% global-global level, for example, we define `AidaPvaStruct` in this function so it can be accessed from within
7% functions, whereas it can otherwise be accessed directly in the global-global context.
8function aidapvafninit()
9 aidapva;
10
11 AIDA_BOOLEAN = [edu.stanford.slac.aida.client.AidaType.AIDA_BOOLEAN];
12 AIDA_BYTE = [edu.stanford.slac.aida.client.AidaType.AIDA_BYTE];
13 AIDA_CHAR = [edu.stanford.slac.aida.client.AidaType.AIDA_CHAR];
14 AIDA_SHORT = [edu.stanford.slac.aida.client.AidaType.AIDA_SHORT];
15 AIDA_INTEGER = [edu.stanford.slac.aida.client.AidaType.AIDA_INTEGER];
16 AIDA_LONG = [edu.stanford.slac.aida.client.AidaType.AIDA_LONG];
17 AIDA_FLOAT = [edu.stanford.slac.aida.client.AidaType.AIDA_FLOAT];
18 AIDA_DOUBLE = [edu.stanford.slac.aida.client.AidaType.AIDA_DOUBLE];
19 AIDA_STRING = [edu.stanford.slac.aida.client.AidaType.AIDA_STRING];
20 AIDA_BOOLEAN_ARRAY = [edu.stanford.slac.aida.client.AidaType.AIDA_BOOLEAN_ARRAY];
21 AIDA_BYTE_ARRAY = [edu.stanford.slac.aida.client.AidaType.AIDA_BYTE_ARRAY];
22 AIDA_CHAR_ARRAY = [edu.stanford.slac.aida.client.AidaType.AIDA_CHAR_ARRAY];
23 AIDA_SHORT_ARRAY = [edu.stanford.slac.aida.client.AidaType.AIDA_SHORT_ARRAY];
24 AIDA_INTEGER_ARRAY = [edu.stanford.slac.aida.client.AidaType.AIDA_INTEGER_ARRAY];
25 AIDA_LONG_ARRAY = [edu.stanford.slac.aida.client.AidaType.AIDA_LONG_ARRAY];
26 AIDA_FLOAT_ARRAY = [edu.stanford.slac.aida.client.AidaType.AIDA_FLOAT_ARRAY];
27 AIDA_DOUBLE_ARRAY = [edu.stanford.slac.aida.client.AidaType.AIDA_DOUBLE_ARRAY];
28 AIDA_STRING_ARRAY = [edu.stanford.slac.aida.client.AidaType.AIDA_STRING_ARRAY];
29 AIDA_TABLE = [edu.stanford.slac.aida.client.AidaType.AIDA_TABLE];
30
31 pvaRequest = @(channel) edu.stanford.slac.aida.client.AidaPvaClientUtils.pvaRequest(channel);
32 pvaSet = @(channel, value) edu.stanford.slac.aida.client.AidaPvaClientUtils.pvaSet(channel, value);
33 pvaSetM = @(channel, value) ML(edu.stanford.slac.aida.client.AidaPvaClientUtils.pvaSet(channel, value));
34 AidaPvaStruct = @() edu.stanford.slac.aida.client.AidaPvaClientUtils.AidaPvaStruct();
35end
36