-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBooleanButton.bob
More file actions
103 lines (103 loc) · 2.69 KB
/
Copy pathBooleanButton.bob
File metadata and controls
103 lines (103 loc) · 2.69 KB
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?xml version="1.0" encoding="UTF-8"?>
<display version="2.0.0">
<name>combined setting/readback button</name>
<widget type="bool_button" version="2.0.0">
<name>Boolean Button</name>
<pv_name>loc://setpoint(0)</pv_name>
<x>170</x>
<y>60</y>
<rules>
<rule name="New Rule" prop_id="background_color" out_exp="false">
<exp bool_exp="pvInt0!=pvInt1">
<value>
<color name="MAJOR" red="255" green="0" blue="0">
</color>
</value>
</exp>
<pv_name>loc://setpoint</pv_name>
<pv_name>loc://readback</pv_name>
</rule>
</rules>
</widget>
<widget type="bool_button" version="2.0.0">
<name>Boolean Button_1</name>
<pv_name>loc://readback(0)</pv_name>
<x>30</x>
<y>130</y>
<width>110</width>
</widget>
<widget type="led" version="2.0.0">
<name>LED</name>
<pv_name>loc://setpoint</pv_name>
<x>370</x>
<y>130</y>
<width>30</width>
<height>30</height>
</widget>
<widget type="label" version="2.0.0">
<name>Label</name>
<text>Readback</text>
<x>30</x>
<y>110</y>
<width>110</width>
</widget>
<widget type="label" version="2.0.0">
<name>Label_1</name>
<text>Setting</text>
<x>170</x>
<y>40</y>
</widget>
<widget type="label" version="2.0.0">
<name>Label_2</name>
<text>Changes BG color while setting!=readback</text>
<x>180</x>
<y>100</y>
<width>210</width>
<height>40</height>
</widget>
<widget type="bool_button" version="2.0.0">
<name>Boolean Button_2</name>
<pv_name>loc://setpoint(0)</pv_name>
<x>170</x>
<y>180</y>
<width>110</width>
<on_color>
<color name="Off" red="60" green="100" blue="60">
</color>
</on_color>
<rules>
<rule name="on color" prop_id="on_color" out_exp="false">
<exp bool_exp="pvInt0">
<value>
<color name="On" red="0" green="255" blue="0">
</color>
</value>
</exp>
<pv_name>loc://readback</pv_name>
</rule>
<rule name="off color" prop_id="off_color" out_exp="false">
<exp bool_exp="pvInt0">
<value>
<color name="On" red="0" green="255" blue="0">
</color>
</value>
</exp>
<pv_name>loc://readback</pv_name>
</rule>
</rules>
</widget>
<widget type="label" version="2.0.0">
<name>Label_4</name>
<text>Setting</text>
<x>170</x>
<y>160</y>
</widget>
<widget type="label" version="2.0.0">
<name>Label_5</name>
<text>LED follows readback, string follows setting</text>
<x>170</x>
<y>210</y>
<width>210</width>
<height>40</height>
</widget>
</display>