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
pvarpc.m
1function [ PVDATA ] = pvarpc( NTURI )
2 import('org.epics.pvaccess.*')
3 import('org.epics.pvaClient.*')
4 import('org.epics.pvdata.*')
5
6 PVDATA = NaN;
7 nturi_pvs = NTURI;
8
9 % Get an PVA interface.
10 provider = 'pva';
11 client = PvaClient.get(provider);
12
13 % Create a channel to the optics pv.
14 pvname = nturi_pvs.getStringField('path').get();
15 channel = client.createChannel(pvname);
16
17 pvs = channel.rpc(nturi_pvs);
18
19 % Reset output var if all went well.
20 PVDATA = pvs;
21