home *** CD-ROM | disk | FTP | other *** search
/ HAM Radio 1 / HamRadio.cdr / math / cktdraw / cktdraw.doc < prev    next >
Encoding:
Text File  |  1979-12-31  |  7.2 KB  |  152 lines

  1.                                  CKT Draw!
  2.                                                     by Scott Walton
  3.  
  4.     Version 1.0
  5.     December 9, 1987
  6.     Written in TURBO PASCAL
  7.  
  8.          CKT Draw! is a graphical circuit editor for the IBM PC and
  9.     compatibles with CGA (or compatible).  My original idea for this
  10.     program was to make a circuit editor that was:
  11.  
  12.           1) Graphically oriented
  13.           2) Keyboard interactive
  14.           3) Very fast and easy to use.
  15.  
  16.      I think I have accomplished this with CKT Draw!  The elements look
  17.      like their symbols, and the keyboard commands allow one to create
  18.      circuits quickly.
  19.  
  20.     FEATURES_____________________________________________________________
  21.  
  22.          CKT Draw! can be started by typing the name of the .COM file
  23.     CKT.COM.  Upon loading, the helpscreen is displayed.  This is a quick
  24.     reminder of all the commands, elements, and special keys that can be
  25.     called up in the program as a reference.  Press a key and you are in
  26.     the main display mode.  The display mode has two parts.  The bottom
  27.     two text lines are reserved for the commandbar which displays a list
  28.     of elements and commands that are available.  The rest of the screen
  29.     is the main drawing screen.  An X-shaped cursor appears on the screen.
  30.     This is the graphics cursor.  It is moved around with the arrow keys.
  31.     Most commands are single key presses where the key to be pressed is
  32.     the capital letter of the command listed on the commandbar.  For
  33.     example, to draw a resistor, press R (the capitalized letter of the
  34.     command) and select a direction with the arrow keys.  The main features
  35.     of CKT Draw! are summarized below.
  36.  
  37.  
  38.     MESSAGES: Messages sometimes appear on the command bar at the bottom
  39.     of the screen such as "File not found", "Are you sure you want to
  40.     quit", etc.  Also, keyboard input for the filenames is done here.
  41.  
  42.  
  43.     CURSOR: The X-shaped graphics cursor is moved about the screen with the
  44.     arrow keys to draw and connect elements.  The function keys F1 through
  45.     F4 are used to control the distance the cursor moves when an arrow key
  46.     is pressed.  F2 gives half (1/2) jumps, F3 gives one third (1/3) jumps
  47.     and so on. This is necessary to get to the terminals of an op amp.
  48.     However, only wires can be drawn in the small jump modes, so F1 must
  49.     be pressed to draw elements.
  50.  
  51.     ELEMENTS: All elements are obtained by pressing the single capitalized
  52.     letter of the name and selecting a direction with the arrow keys.  If
  53.     an incorrect key is pressed (not a direction) no element is obtained.
  54.     The elements are:
  55.  
  56.     Resistor - Resistor symbol (zig-zag line)
  57.     Capacitor - Capacitor symbol (two parallel lines)
  58.     Coil - Inductor symbol (coiled line)
  59.     Wire - Wire (straight line)
  60.     Amp - Triangular amplifier symbol (may be used as an op amp or finite
  61.           gain amplifier)
  62.     Voltage source - AC voltage source symbol (circle)
  63.     Current source - AC current source symbol (circle with arrow)
  64.     Box - Unidentified box (can be given any name)
  65.     Node - Circular node symbol (open terminal)
  66.     Cross - Dot showing two wires are connected
  67.  
  68.  
  69.     COMMANDS: All commands are obtained by pressing the single capitalized
  70.     letter of the name.  The commands are:
  71.  
  72.     Blank - Clears the main graphics screen
  73.  
  74.     Delete - Deletes an element.  Use an arrow key to choose which element
  75.              is deleted.  To delete a node element (node or cross) hit
  76.              the HOME key after pressing D.  To delete an op amp hit the
  77.              END key, then choose a direction with the arrow keys.
  78.  
  79.     Hold - Erases the cursor and command bar and waits until a key is
  80.            pressed.  This lets you look at how your final circuit will
  81.            look or print with ^printscreen.
  82.  
  83.     ?(Help) - Displays the help screen, that appears when the program is
  84.               first started, for reference.  The current circuit is saved.
  85.  
  86.     Text - Engages text mode to allow text entry. (See below for details)
  87.  
  88.     Print - Prints out the current circuit in high res.  This printout
  89.             is right-side up (not sideways down the page).  However, it
  90.             may not work on printers that do not support 120 dots per
  91.             inch graphics mode.
  92.  
  93.     Save - Saves a file to disk.  The user is prompted for a file name.
  94.            The extension is always .CKT (this lets you look at your disk
  95.            directory and immediately see which files belong to CKT Draw!).
  96.            Certain characters are illegal as input to the file name, such
  97.            as <space>, !, @, etc., and these characters are not allowed.
  98.  
  99.     Get - Loads a file from disk.  This works in the same manner as save.
  100.  
  101.     Quit - Exit from the program to DOS.
  102.  
  103.  
  104.     TEXT MODE: This allows text to be added to circuits.  Pressing T enters
  105.     text mode.  The commandbar displays a message on how to exit.  The
  106.     text cursor (a square) appears in the upper left hand corner.  This can
  107.     be moved with arrow keys also.  The cursor will wrap around at the edge
  108.     of the screen.  The function keys F1 through F10 change the amount by
  109.     which the cursor moves.  F1 gives a single pixel jump, F2 gives a two
  110.     pixel jump an so on.  The default distance is 8 pixels (F8).  Note that
  111.     these distances apply both for the arrow keys AND WHEN TYPING TEXT.
  112.     Thus to get proper spacing in text, you must press F8.  If you make a
  113.     mistake, backspace will erase the text.  It will also replace any
  114.     graphics that you have typed over AS LONG AS YOU HAVE NOT PRESSED ENTER
  115.     OR AN ARROW KEY.  After this, backspace will erase a character and any
  116.     graphics in the same space.
  117.  
  118.  
  119.     THE PROGRAM___________________________________________________________
  120.  
  121.          CKT Draw! was written in TURBO PASCAL on an IBM clone.  The code
  122.     is about 800 lines long.  The program is probably IBM/CGA/TURBO
  123.     specific because it uses many routines that are specific to
  124.     TURBO and CGA.  The program, while not being very large, is quite a
  125.     memory hog and might not run on a 64k machine.  (I don't know, though,
  126.     if you find out let me know).  Also, since this is a version 1.0
  127.     program, it is bound to have lots of bugs that I cannot find all by
  128.     myself.  I would also appreciate notice of any of these and any
  129.     comments or suggestions you might have.  I live in Tucson, Arizona,
  130.     and can be contacted through any of my bulletin boards such as:
  131.  
  132.     University of Arizona (U of A) MAP BBS
  133.     U of A College of Agriculture (CAG BBS)
  134.     Davis - Monthan Air Force Base (DMAFB BBS)
  135.     NEC Home Electronics BBS (Nationwide)
  136.     Any other that you find my name on.
  137.  
  138.     or you may write to me:
  139.  
  140.     Scott Walton
  141.     3041 S. Eastview Ave.
  142.     Tucson, AZ 85730
  143.  
  144.  
  145.     REVISIONS AND UPDATES_________________________________________________
  146.  
  147.          I hope to make improvements on this program such as fixing bugs,
  148.     adding new elements and commands.  I would also like to try and make
  149.     the code smaller (if possible) and faster.  Any suggestions for
  150.     improvement will be greatly appreciated.  Keep an eye out for future
  151.     revisions of CKT Draw!
  152.