1 /* atlc - arbitrary transmission line calculator, for the analysis of
2 transmission lines are directional couplers.
4 Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License
8 as published by the Free Software Foundation; either package_version 2
9 of the License, or (at your option) any later package_version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
21 Dr. David Kirkby, e-mail drkirkby at ntlworld.com
30 #include "definitions.h"
31 #include "exit_codes.h"
33 void usage_create_bmp_for_rect_in_rect(void)
35 fprintf(stderr,"Usage: create_bmp_for_rect_in_rect [-b bmp_size] [-f outfile] [-v] W H a b c d w h Er1 Er2 outfile.bmp\n\n");
36 fprintf(stderr,"Version %s\n",PACKAGE_VERSION);
37 fprintf(stderr,"where W, H, a, b, c, d, w, and h are all in mm or all in inches\n");
38 fprintf(stderr,"(they *must* use the same units. Non-integers allowed for all parameters)\n");
39 fprintf(stderr,"outfile.bmp is the name of a file to writ the bitmap to\n");
40 fprintf(stderr,"Options are:\n");
41 fprintf(stderr," -C \n Print copyright, licencing and distribution information.\n");
42 fprintf(stderr," -b bmp_size\n Sets the size of the bitmap, in the range 1 to 15 (default %d).\n",DEFAULT_BMP_SIZE);
43 fprintf(stderr," -v \n Write diagnostic information to stderr\n");
44 fprintf(stderr,"----------------------------------------------------------------------- ^\n");
45 fprintf(stderr,"| | |\n");
46 fprintf(stderr,"| Dielectric, permittivity=Er1 | |\n");
47 fprintf(stderr,"| | |\n");
48 fprintf(stderr,"| <----------------d-------------------------> | |\n");
49 fprintf(stderr,"| | |\n");
50 fprintf(stderr,"| <----------w-----------> | |\n");
51 fprintf(stderr,"| ------------------------ ^ | |\n");
52 fprintf(stderr,"| | | | | |\n");
53 fprintf(stderr,"| | Metallic conductor | | | H\n");
54 fprintf(stderr,"|<-----b----->| conductor (can be | c | |\n");
55 fprintf(stderr,"| | off-centre) | | | |\n");
56 fprintf(stderr,"| | | | | |\n");
57 fprintf(stderr,"| |------------------------------------------- ^ | |\n");
58 fprintf(stderr,"| |..........................................| | | |\n");
59 fprintf(stderr,"| |.....Dielectric, permittivity=Er2.........| | | |\n");
60 fprintf(stderr,"|<--a-->|.......(can be off centre )...............| h | |\n");
61 fprintf(stderr,"| |..........................................| | | |\n");
62 fprintf(stderr,"| |..........................................| | | |\n");
63 fprintf(stderr,"----------------------------------------------------------------------- |\n");
64 fprintf(stderr,"<----------------------------------W--------------------------------->\n\n");
65 fprintf(stderr,"Eg: create_bmp_for_rect_in_rect 250 100 20 100 4.25 205 45 15 1.0006 3.7 ms.bmp \n");
66 exit_with_msg_and_exit_code("",PROGRAM_CALLED_WITH_WRONG_NUMBER_OF_ARGUMENTS);