comparison man/man1/ptrain.1 @ 0:5242703e91d3 tip

Initial checkin for AIM92 aimR8.2 (last updated May 1997).
author tomwalters
date Fri, 20 May 2011 15:19:45 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:5242703e91d3
1 .TH PTRAIN 1 "14 September 1993"
2
3 .SH NAME
4 ptrain \- generate a pulse train of binary shorts.
5
6 .SH SYNTAX
7 ptrain [arguments] [file]
8
9
10 .SH DESCRIPTION
11 Generate periods of a pulse train in binary 2-byte numbers to the given
12 waveform duration.
13 A period in samples is computed (using the "period" option in samples or in
14 time units, in which case the period also depends upon the given samplerate),
15 and "width" samples at the start of every period are output with the given
16 "amplitude", the remaining samples in the period having zero amplitude.
17 The pulse amplitude is the pulse height above the zero level, which is
18 set by the offset option. The offset is "0" by default so that pulses
19 of any given amplitude are non-negative by default.
20
21 The default output is 12 periods of an 8ms pulse train at 20KHz (ie with 160
22 samples per period), with pulse width 4 samples and pulse amplitude 1024.
23
24 If a filename argument is given, then the period of the output pulse train
25 is taken from the file. Binary shorts read from the file are successive
26 periods in samples, and periods are output until the file is empty.
27 This enables pulse trains with modulated periods.
28
29 .SH EXAMPLES
30
31
32 1. A pulse train with period 100 samples and pulse width 1 sample:
33
34 ptrain period=100p width=1p
35
36 2. A pulse train with period 8ms at 20KHz and pulse width 4 samples
37
38 ptrain period=8ms samplerate=20000Hz width=4p
39
40 .SH COPYRIGHT
41 .LP
42 Copyright (c) Applied Psychology Unit, Medical Research Council, 1995
43 .LP
44 Permission to use, copy, modify, and distribute this software without fee
45 is hereby granted for research purposes, provided that this copyright
46 notice appears in all copies and in all supporting documentation, and that
47 the software is not redistributed for any fee (except for a nominal
48 shipping charge). Anyone wanting to incorporate all or part of this
49 software in a commercial product must obtain a license from the Medical
50 Research Council.
51 .LP
52 The MRC makes no representations about the suitability of this
53 software for any purpose. It is provided "as is" without express or
54 implied warranty.
55 .LP
56 THE MRC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
57 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
58 THE A.P.U. BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES
59 OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
60 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
61 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
62 SOFTWARE.
63