Debian Codegraph @

opcodes/printsk.xml

raw symbols SCIP
1
2 <refentry id="printsk">
3 <indexterm id="IndexPrintsk"><primary>printsk</primary></indexterm>
4 <refentryinfo><title>Signal I/O:Printing and Display</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>printsk</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>printks</refname>
11 <refpurpose>
12 Prints at k-rate using a printf() style syntax.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Prints at k-rate using a printf() style syntax. This opcode prints at every cycle,
20 possibly multiple times per cycle. Used inside an if-block it can behave like
21 <command>printf</command>, <command>printks</command> (when used together with metro) or
22 <command>printks2</command> (when used with changed).
23 </para>
24 </refsect1>
25
26 <refsect1>
27 <title>Syntax</title>
28 <synopsis><command>printsk</command> &quot;string&quot;, [, xval1] [, xval2] [...]</synopsis>
29 </refsect1>
30
31 <refsect1>
32 <title>Initialization</title>
33 <para>
34 <emphasis>&quot;string&quot;</emphasis> -- the text string to be printed. Can be up to
35 8192 characters and must be in double quotes.
36 </para>
37
38 </refsect1>
39
40 <refsect1>
41 <title>Performance</title>
42 <para>
43 <emphasis>xval1, xval2, ...</emphasis> (optional) -- The k-rate values to be printed.
44 These are specified in <emphasis><quote>string</quote></emphasis> with the standard C
45 value specifier (%f, %d, %s etc.) in the order given.
46 </para>
47
48 </refsect1>
49
50 <refsect1>
51 <title>Print Output Formatting</title>
52 <para>
53 All standard C language printf() control characters may be used. For example, if
54 <emphasis>kval1</emphasis> = 153.26789 then some common formatting options are:
55
56 <orderedlist>
57 <listitem><para>%f prints with full precision: 153.26789</para></listitem>
58 <listitem><para>%5.2f prints: 153.26</para></listitem>
59 <listitem><para>%d prints integers-only: 153</para></listitem>
60 <listitem><para>%c treats <emphasis>kval1</emphasis> as an ascii character code.
61 </para></listitem>
62 </orderedlist>
63 </para>
64
65 <para>
66 For more information about printf() formatting, consult any C language documentation.
67 </para>
68
69 </refsect1>
70
71 <refsect1>
72 <title>Examples</title>
73 <para>
74 Here is an example of the printsk opcode. It uses the file <ulink
75 url="examples/printsk.csd"><citetitle>printsk.csd</citetitle></ulink>.
76
77 <example>
78 <title>Example of the printsk opcode.</title>
79 <xi:include href="examples-xml/printsk.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
80 </example>
81 </para>
82 </refsect1>
83
84 <refsect1>
85 <title>See also</title>
86 <para><link linkend="SigioPdisplay"><citetitle>Printing and Display</citetitle></link></para>
87 </refsect1>
88
89 <refsect1>
90 <title>Credits</title>
91 <para>By: &nameeduardo; 2020</para>
92 <para>New plugin in version 6.15</para>
93 </refsect1>
94
95 </refentry>