home *** CD-ROM | disk | FTP | other *** search
- CKT Draw!
- by Scott Walton
-
- Version 1.0
- December 9, 1987
- Written in TURBO PASCAL
-
- CKT Draw! is a graphical circuit editor for the IBM PC and
- compatibles with CGA (or compatible). My original idea for this
- program was to make a circuit editor that was:
-
- 1) Graphically oriented
- 2) Keyboard interactive
- 3) Very fast and easy to use.
-
- I think I have accomplished this with CKT Draw! The elements look
- like their symbols, and the keyboard commands allow one to create
- circuits quickly.
-
- FEATURES_____________________________________________________________
-
- CKT Draw! can be started by typing the name of the .COM file
- CKT.COM. Upon loading, the helpscreen is displayed. This is a quick
- reminder of all the commands, elements, and special keys that can be
- called up in the program as a reference. Press a key and you are in
- the main display mode. The display mode has two parts. The bottom
- two text lines are reserved for the commandbar which displays a list
- of elements and commands that are available. The rest of the screen
- is the main drawing screen. An X-shaped cursor appears on the screen.
- This is the graphics cursor. It is moved around with the arrow keys.
- Most commands are single key presses where the key to be pressed is
- the capital letter of the command listed on the commandbar. For
- example, to draw a resistor, press R (the capitalized letter of the
- command) and select a direction with the arrow keys. The main features
- of CKT Draw! are summarized below.
-
-
- MESSAGES: Messages sometimes appear on the command bar at the bottom
- of the screen such as "File not found", "Are you sure you want to
- quit", etc. Also, keyboard input for the filenames is done here.
-
-
- CURSOR: The X-shaped graphics cursor is moved about the screen with the
- arrow keys to draw and connect elements. The function keys F1 through
- F4 are used to control the distance the cursor moves when an arrow key
- is pressed. F2 gives half (1/2) jumps, F3 gives one third (1/3) jumps
- and so on. This is necessary to get to the terminals of an op amp.
- However, only wires can be drawn in the small jump modes, so F1 must
- be pressed to draw elements.
-
- ELEMENTS: All elements are obtained by pressing the single capitalized
- letter of the name and selecting a direction with the arrow keys. If
- an incorrect key is pressed (not a direction) no element is obtained.
- The elements are:
-
- Resistor - Resistor symbol (zig-zag line)
- Capacitor - Capacitor symbol (two parallel lines)
- Coil - Inductor symbol (coiled line)
- Wire - Wire (straight line)
- Amp - Triangular amplifier symbol (may be used as an op amp or finite
- gain amplifier)
- Voltage source - AC voltage source symbol (circle)
- Current source - AC current source symbol (circle with arrow)
- Box - Unidentified box (can be given any name)
- Node - Circular node symbol (open terminal)
- Cross - Dot showing two wires are connected
-
-
- COMMANDS: All commands are obtained by pressing the single capitalized
- letter of the name. The commands are:
-
- Blank - Clears the main graphics screen
-
- Delete - Deletes an element. Use an arrow key to choose which element
- is deleted. To delete a node element (node or cross) hit
- the HOME key after pressing D. To delete an op amp hit the
- END key, then choose a direction with the arrow keys.
-
- Hold - Erases the cursor and command bar and waits until a key is
- pressed. This lets you look at how your final circuit will
- look or print with ^printscreen.
-
- ?(Help) - Displays the help screen, that appears when the program is
- first started, for reference. The current circuit is saved.
-
- Text - Engages text mode to allow text entry. (See below for details)
-
- Print - Prints out the current circuit in high res. This printout
- is right-side up (not sideways down the page). However, it
- may not work on printers that do not support 120 dots per
- inch graphics mode.
-
- Save - Saves a file to disk. The user is prompted for a file name.
- The extension is always .CKT (this lets you look at your disk
- directory and immediately see which files belong to CKT Draw!).
- Certain characters are illegal as input to the file name, such
- as <space>, !, @, etc., and these characters are not allowed.
-
- Get - Loads a file from disk. This works in the same manner as save.
-
- Quit - Exit from the program to DOS.
-
-
- TEXT MODE: This allows text to be added to circuits. Pressing T enters
- text mode. The commandbar displays a message on how to exit. The
- text cursor (a square) appears in the upper left hand corner. This can
- be moved with arrow keys also. The cursor will wrap around at the edge
- of the screen. The function keys F1 through F10 change the amount by
- which the cursor moves. F1 gives a single pixel jump, F2 gives a two
- pixel jump an so on. The default distance is 8 pixels (F8). Note that
- these distances apply both for the arrow keys AND WHEN TYPING TEXT.
- Thus to get proper spacing in text, you must press F8. If you make a
- mistake, backspace will erase the text. It will also replace any
- graphics that you have typed over AS LONG AS YOU HAVE NOT PRESSED ENTER
- OR AN ARROW KEY. After this, backspace will erase a character and any
- graphics in the same space.
-
-
- THE PROGRAM___________________________________________________________
-
- CKT Draw! was written in TURBO PASCAL on an IBM clone. The code
- is about 800 lines long. The program is probably IBM/CGA/TURBO
- specific because it uses many routines that are specific to
- TURBO and CGA. The program, while not being very large, is quite a
- memory hog and might not run on a 64k machine. (I don't know, though,
- if you find out let me know). Also, since this is a version 1.0
- program, it is bound to have lots of bugs that I cannot find all by
- myself. I would also appreciate notice of any of these and any
- comments or suggestions you might have. I live in Tucson, Arizona,
- and can be contacted through any of my bulletin boards such as:
-
- University of Arizona (U of A) MAP BBS
- U of A College of Agriculture (CAG BBS)
- Davis - Monthan Air Force Base (DMAFB BBS)
- NEC Home Electronics BBS (Nationwide)
- Any other that you find my name on.
-
- or you may write to me:
-
- Scott Walton
- 3041 S. Eastview Ave.
- Tucson, AZ 85730
-
-
- REVISIONS AND UPDATES_________________________________________________
-
- I hope to make improvements on this program such as fixing bugs,
- adding new elements and commands. I would also like to try and make
- the code smaller (if possible) and faster. Any suggestions for
- improvement will be greatly appreciated. Keep an eye out for future
- revisions of CKT Draw!