You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.. note:: Once a calc channel is created, multiple widgets can be connected to the same channel by providing the name of the variable, like so:
18
-
::
17
+
.. note::
18
+
19
+
Once a calc channel is created, multiple widgets can be connected to the
20
+
same channel by providing the name of the variable, like so:
21
+
22
+
::
19
23
20
24
calc://my_variable_name
21
25
22
-
.. note:: The calc functions uses url formatting. Where the name attribute is separated by the ? symbol and all other attributes are separated by the & symbol.
23
-
::
26
+
.. note::
24
27
25
-
-------------
28
+
The calc functions uses url formatting. Where the name attribute is
29
+
separated by the ? symbol and all other attributes are separated by the &
Copy file name to clipboardExpand all lines: docs/source/data_plugins/local_plugin.rst
+11-15
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
Local Plugin
3
3
========================
4
4
5
-
PyDM uses Data Plugins as sources of information to be displayed at the widgets.
5
+
PyDM uses Data Plugins as sources of information to be displayed at the widgets.
6
6
Local Data Plugin allows users to create and use local variables.
7
7
8
8
The Local Data Plugin stores the data that is sent by the widgets through a channel, and broadcasts it to all the listeners connected to this particular local variable channel.
@@ -39,7 +39,7 @@ Attributes Description Format Example
**loc** protocol name for Local Data Plugin `loc://`
41
41
**name** |the identifier for a local variable `my_ndarray_var`
42
-
|user's choice
42
+
|user's choice
43
43
**type** |data-type for this variable `type=array`
44
44
|refer to :ref:`Variable Types<Variable Types>`
45
45
|for more info of acceptable type
@@ -49,7 +49,7 @@ Attributes Description Format Example
49
49
50
50
Here is a simple example of a channel address format with the required attributes:
51
51
::
52
-
52
+
53
53
loc://my_np.array?type=array&init=[1,2,3,4]
54
54
55
55
@@ -58,20 +58,20 @@ Here is a simple example of a channel address format with the required attribute
58
58
59
59
-------------
60
60
61
-
.. _Extra Attributes:
61
+
.. _Local Plugin Extra Attributes:
62
62
63
63
Extra Attributes
64
64
----------------
65
65
66
66
Along with the :ref:`required attributes<Required Attributes>`, the Local Data Plugin can also accept some optional attributes to configure the Local Variables with.
67
-
The optional attributes are described in the :ref:`extra attributes<extra attributes table>` table below:
67
+
The optional attributes are described in the :ref:`extra attributes<extra attributes table>` table below:
68
68
69
69
70
70
71
-
.. _extra attributes table:
71
+
.. _extra attributes table:
72
72
73
73
The table below explains the optional attributes that can go in the *extras*:
@@ -155,11 +155,11 @@ The picture below represents a simple example using the Local Data Plugin, where
155
155
156
156
Right below the Waveform Curve Editor widget, there are two other widgets connected to the 'x' and 'y' local variable respectively::
157
157
158
-
158
+
159
159
X-values: loc://x
160
160
Y-values: loc://y
161
161
162
-
Data can be updated in the two X and Y-values widgets and the Waveform Curve Editor will receive the new data and change the curve accordingly, like seen in the picture below:
162
+
Data can be updated in the two X and Y-values widgets and the Waveform Curve Editor will receive the new data and change the curve accordingly, like seen in the picture below:
163
163
164
164
165
165
@@ -176,7 +176,3 @@ Miscellaneous
176
176
-------------
177
177
178
178
* If precision is not set through the "extras", and it is set to receive the precision from the PV (Process Variable), the Local Data Plugin will match the precision from the values inserted by the users in the widgets.
0 commit comments