printskSignal I/O:Printing and Displayprintskprintks
Prints at k-rate using a printf() style syntax.
Description
Prints at k-rate using a printf() style syntax. This opcode prints at every cycle,
possibly multiple times per cycle. Used inside an if-block it can behave like
printf, printks (when used together with metro) or
printks2 (when used with changed).
Syntaxprintsk "string", [, xval1] [, xval2] [...]Initialization"string" -- the text string to be printed. Can be up to
8192 characters and must be in double quotes.
Performancexval1, xval2, ... (optional) -- The k-rate values to be printed.
These are specified in string with the standard C
value specifier (%f, %d, %s etc.) in the order given.
Print Output Formatting
All standard C language printf() control characters may be used. For example, if
kval1 = 153.26789 then some common formatting options are:
%f prints with full precision: 153.26789%5.2f prints: 153.26%d prints integers-only: 153%c treats kval1 as an ascii character code.
For more information about printf() formatting, consult any C language documentation.
Examples
Here is an example of the printsk opcode. It uses the file printsk.csd.
Example of the printsk opcode.See alsoPrinting and DisplayCreditsBy: &nameeduardo; 2020New plugin in version 6.15