home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / MATH / VISSIM.ZIP / LAGCMP.VSM < prev    next >
Text File  |  1994-02-28  |  3KB  |  127 lines

  1. ; VisSim Block Diagram Format (VBDF)
  2. ; Copyright (C) 1989-1994 Visual Solutions
  3. PV=1.500
  4. PS=0
  5. PE=10
  6. PP=0.05
  7. PI=172
  8. PX=0.05
  9. PN=1e-006
  10. PL=5
  11. PT=1e-005
  12. Pn=-9,6,16,"Times New Roman"
  13. Pc=35
  14. Po=0.01,50,664
  15. PD=800x600
  16. Pf=0x0
  17. Pr=""
  18. Ps=1567,0,0,1091,0,0
  19. Pd=17
  20. PM=1,1,1,1
  21. N.1="summingJunction"*26x23<M>
  22. N.2="integrator"(0,1)*85x26<M>
  23. N.3="gain"(1)*70x13<MR>
  24. N.4="integrator"(0,2)*115x26<M>
  25. N.5="Compound"*24x22#1,1<C>
  26. n="1/ (s**2 + 1.4*s + 1)"
  27. Ms=689,0,0,497,0,0
  28. N.6="*"*48x24<M>
  29. N.7="summingJunction"*66x25<M>
  30. N.8="pow"(2)*26x32<M>
  31. N.9="*"*71x42<M>
  32. N.10="gain"(2)*93x43<M>
  33. N.11="*"*92x32<MR>
  34. N.12="wireLabel"*59x9<M>
  35. n="Second Order Unity gain lag"
  36. N.13="wireLabel"*3x45<M>
  37. n="Natural frequency (wn) rad/sec"
  38. N.14="wireLabel"*40x47<M>
  39. n="Damping ratio (zeta)"
  40. N.15="const"(1)*15x42<M>
  41. N.16="const"(0.707)*47x44<M>
  42. N.17="wireLabel"*95x46<M>
  43. n="2*zeta*wn"
  44. N.18="wireLabel"*27x35<M>
  45. n="wn**2"
  46. N.19="wireLabel"*1x29<M>
  47. n="Input signal"
  48. N.20="wireLabel"*116x34<M>
  49. n="Output signal"
  50. N.21="step"(0,1)*3x14
  51. N.22="plot"*66x12*47x31
  52. pt="Lag Response Comparison"
  53. px="Time (sec)"
  54. pax=0
  55. pf=H
  56. pf=F
  57. pb=2,0
  58. pbx=10,0
  59. pbY=0,0
  60. pbX=0,0
  61. pc=512
  62. pm=10
  63. pb.0=2,0
  64. pL.0="1st order lag"
  65. pb.1=0,0
  66. pL.1="2nd order lag"
  67. pb.2=0,0
  68. pb.3=0,0
  69. N.23="summingJunction"*37x40<M>
  70. N.24="gain"(1)*62x33<MR>
  71. N.25="integrator"(0,0)*94x42<M>
  72. N.26="Compound"*26x14#1,1<C>
  73. n="1 / (1*s + 1)"
  74. Ms=682,0,0,396,0,0
  75. N.27="wireLabel"*53x30<M>
  76. n="First Order unity gain lag"
  77. N.28="wireLabel"*50x48<M>
  78. n="Time constant, seconds"
  79. N.29="const"(1)*57x45<M>
  80. N.30="/"*67x41<M>
  81. N.31="wireLabel"*4x38<M>
  82. n="Input signal"
  83. N.32="wireLabel"*153x38<M>
  84. n="Output signal"
  85. N.33="wireLabel"*23x25
  86. n="Second Order Unity gain lag"
  87. N.34="wireLabel"*24x11
  88. n="First Order unity gain lag"
  89. N.35="comment"*1x43*43x14
  90. C="This diagram simulates the step response of two transfer functions.
  91.  
  92. The transfer functions are simulated with integrators here. One can also use the built in Transfer Function block to do the same.
  93.  
  94. The Lag coefficients can be changed inside the compund blocks for the lags."
  95. f1.1.i=-
  96. I.1.i1=3.o1
  97. I.1.i2=5.i1
  98. I.2.i1=7.o1
  99. I.3.i1=4.o1
  100. I.4.i1=2.o1
  101. G.5=1,2,4,3,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,
  102. I.5.o1=4.o1
  103. I.5.i1=21.o1
  104. I.6.i1=1.o1
  105. I.6.i2=8.o1
  106. I.7.i1=6.o1
  107. f7.2.i=-
  108. I.7.i2=11.o1
  109. I.8.i1=15.o1
  110. I.9.i1=15.o1
  111. I.9.i2=16.o1
  112. I.10.i1=9.o1
  113. I.11.i1=2.o1
  114. I.11.i2=10.o1
  115. I.22.i1=26.o1
  116. I.22.i2=5.o1
  117. f23.1.i=-
  118. I.23.i1=24.o1
  119. I.23.i2=26.i1
  120. I.24.i1=25.o1
  121. I.25.i1=30.o1
  122. G.26=23,25,24,27,28,29,30,31,32,
  123. I.26.o1=25.o1
  124. I.26.i1=21.o1
  125. I.30.i1=23.o1
  126. I.30.i2=29.o1
  127.