aboutsummaryrefslogtreecommitdiff
path: root/doc/help/cyclone/capture~-help.pd
blob: e698f5a6ff953f7567c8a3106ce20c9e438bb70c (plain)
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
#N canvas 1174 170 650 528 10;
#X declare -lib cyclone;
#X text 16 20 Collect samples from a signal and examine them in a text
window;
#X msg 285 141 write;
#X msg 100 141 clear;
#X obj 28 128 cycle~ 440;
#X text 133 141 Clear capture buffer;
#X text 22 46 capture~ is similar to the capture object \, except that
it collects signal values rather than incoming integers. capture~ is
designed for signal debugging or investigation321for recording \, use
record~ or sfrecord~;
#X text 326 139 Write as text file;
#X text 160 207 Arguments: - optional "f" or "first" to put capture~
into "first" mode where it stops collecting data after it has received
the specified number of values \; - number of values to capture \;
- the print precision (number of decimal places shown) \; - a list
of up to 10 indices within a signal vector. If no indices present \,
capture~ records the entire vector.;
#X text 160 301 Default values: - "last" mode \, where capture~ continues
to collect data \, throwing away old values if it has received more
than its specified number \; - 4100 values \; - print precision of
4 decimal places \; - record the entire signal vector \;;
#X text 30 107 (look at values from a sine wave...);
#X text 43 387 Note that capture~'s text window only holds a limited
amount of data \, so it's easy to capture more data than you can see.
If you want to see all the data \, write it to a text file and open
the file with another text editor.;
#X text 159 172 double-click to see text of captured values;
#X obj 408 32 import cyclone;
#X obj 28 181 capture~ f 1000 2 0;
#X connect 1 0 13 0;
#X connect 2 0 13 0;
#X connect 3 0 13 0;