home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Path: sparky!uunet!stanford.edu!bcm!convex!darwin.sura.net!paladin.american.edu!auvm!VAXF.COLORADO.EDU!POWERS_W
- X-Envelope-to: CSG-L@vmd.cso.uiuc.edu
- X-VMS-To: @CSG
- MIME-version: 1.0
- Content-transfer-encoding: 7BIT
- Message-ID: <01GR0XLMB70200CXCF@VAXF.COLORADO.EDU>
- Newsgroups: bit.listserv.csg-l
- Date: Wed, 11 Nov 1992 12:37:27 -0700
- Sender: "Control Systems Group Network (CSGnet)" <CSG-L@UIUCVMD.BITNET>
- From: "William T. Powers" <POWERS_W%FLC@VAXF.COLORADO.EDU>
- Subject: primer program from Zocher
- Lines: 42
-
- [From Bill Powers (921111.1230)]
-
- Wolfgang Zocher (921111) --
-
- RE: primer for computer modelers
-
- Thanks for the Pascal version, Wolfgang. I will incorporate it, with
- credit. It runs fine under Turbo Pascal -- anybody else out there who
- can test these programs to make sure they work on your system?
-
- I would welcome the efforts of anyone who would like to take my rather
- verbose version of the writeup and make it shorter and better organized.
-
- Also, if someone wants to make the program more user-friendly (but still
- short), feel free: I'll check it out and revise the Primer accordingly.
- I can run C, Pascal, and Qbasic programs.
- ---------------------------------------
- You ask why there shouldn't be a second integrator. This should go into
- the Primer. The best way to see why not is to put a second integrator
- into the program.
-
- Try this: in place of
-
- qi := kf*qo + kd*qd;
-
- introduce a dummy variable x, and write
-
- x := x + kf*qo;
- qi := x + kf*qd;
-
- You'll have to declare x and initialize it to 0. The variable x
- represents the contribution of the output via the feedback function to
- the state of the input quantity. The feedback function is now an
- integrator.
-
- How about trying this, and writing back to tell the folks what happened?
-
- (C version: same change, but use = instead of :=).
- -------------------------------------------------------------------
- Best,
-
- Bill P.
-