-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDEMO
81 lines (66 loc) · 2.2 KB
/
DEMO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
First run a EPICS V4 Java IOC by running ./runTestJavaIOC in another terminal (or in background).
Make sure that pvDataJava, pvAccessJava and pvIOCJava are located in the same parent directory,
and EPICSV4_WORKSPACE environment variable set to it.
pvget, pvput and eget utilities are delivered by pvAccessCPP (caget and caput equvivalents).
They are located in pvAccessCPP/bin/$EPICS_HOST_ARCH directory.
1. Get the value of a V4 scalar PV
----------------------------------
> pvget double
double 1
2. Put the value of a V4 scalar PV
----------------------------------
> pvput double 1.23
Old : double 1
New : double 1.23
3. Get the value of a V4 array PV
----------------------------------
> pvget doubleArray
doubleArray 3 0 0 0
4. Put the value of a V4 array PV
----------------------------------
> pvput doubleArray 3 11 22 33
Old : doubleArray 3 0 0 0
New : doubleArray 3 11 22 33
5. Get the values of all the fields of V4 record (-r is pvAccess request string)
--------------------------------------------------------------------------------
> pvget -r 'field()' double
double
structure
double value 1.23
time_t timeStamp
long secondsPastEpoch 1353589062
int nanoSeconds 855000000
int userTag 0
alarm_t alarm
int severity 0
int status 0
string message
display_t display
double limitLow 0
double limitHigh 10
string description
string format
string units volts
control_t control
double limitLow 1
double limitHigh 9
double minStep 0
6. Get the values of some fields of V4 record (-r is pvAccess request string)
--------------------------------------------------------------------------------
> pvget -r 'field(value,timeStamp,alarm)' double
double
structure
double value 1.23
time_t timeStamp
long secondsPastEpoch 1353589062
int nanoSeconds 855000000
int userTag 0
alarm_t alarm
int severity 0
int status 0
string message
6. Monitor the value of a V4 scalar PV
--------------------------------------
> pvget -m double
double 1.23
^C