home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / bit / listserv / csgl / 1456 < prev    next >
Encoding:
Text File  |  1992-11-11  |  1.9 KB  |  57 lines

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