Debian Codegraph @

opcodes/passign.xml

raw symbols SCIP
1
2 <refentry id="passign">
3 <indexterm id="IndexPassign"><primary>passign</primary></indexterm>
4 <refentryinfo><title>Instrument Control:Initialization and Reinitialization</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>passign</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>passign</refname>
11 <refpurpose>
12 Assigns a range of p-fields to ivariables.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Assigns a range of p-fields to ivariables, or i- or k-array.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis> ivar1, ... <command>passign</command> [istart][, iend</synopsis>
26 <synopsis> iarray <command>passign</command> [istart][, iend</synopsis>
27 <synopsis> karray <command>passign</command> [istart][, iend</synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Initialisation</title>
32 <para>
33 The optional argument <emphasis>istart</emphasis> gives the index of the first
34 p-field to assign. The default value is 1, corresponding to the
35 instrument number.
36 </para>
37 <para>
38 The optional argument <emphasis>iend</emphasis> gives the index of the last
39 p-field to assign. The default value is 0, which means all.
40 </para>
41 <para>
42 One of the variables can be a string variable, in which case it
43 is assigned the only string parameter, if there is one, or an
44 error otherwise.
45 </para>
46 </refsect1>
47
48 <refsect1>
49 <title>Performance</title>
50 <para>
51 <emphasis>passign</emphasis> transfers the instrument p-fields
52 to instrument variables, starting with the one identified by the
53 <emphasis>istart</emphasis> argument. There should not be more
54 variables than p-fields, but there may be fewer.
55 </para>
56 <para>
57 <emphasis>passign</emphasis> can transfer the instrument p-fields
58 to a one dimensional array, either an iarray or a karray.
59 </para>
60 </refsect1>
61
62 <refsect1>
63 <title>See Also</title>
64 <para>
65 <link linkend="assign"><citetitle>assign</citetitle></link>,
66 <link linkend="pcount"><citetitle>pcount</citetitle></link>.
67 </para>
68 </refsect1>
69
70 <refsect1>
71 <title>Example</title>
72 <para>
73 Here is an example of the passign opcode. It uses the file <ulink url="examples/passign.csd"><citetitle>passign.csd</citetitle></ulink>.
74 <example>
75 <title>A variant of toot8.csd that uses passign.</title>
76 <xi:include href="examples-xml/passign.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
77 </example>
78 </para>
79 </refsect1>
80
81 <refsect1>
82 <title>See also</title>
83 <para><link linkend="ControlReinitn"><citetitle>Initialization and Reinitialization</citetitle></link></para>
84 </refsect1>
85
86 <refsect1>
87 <title>Credits</title>
88 <para>
89 <simplelist>
90 <member>Author: &namejohn;</member> after an idea of Tobiah
91 <member>University of Bath, Codemist Ltd.</member>
92 <member>Bath, UK</member>
93 <member>December 2009</member>
94 </simplelist>
95 <para>New in version 5.12; end point and array version after 5.12</para>
96 </para>
97 </refsect1>
98 </refentry>