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

  1. ; VisSim Block Diagram Format (VBDF)
  2. ; Copyright (C) 1989-1994 Visual Solutions
  3. PV=1.500
  4. PS=0
  5. PE=20
  6. PP=0.01
  7. PI=172
  8. PX=0.01
  9. PN=1e-006
  10. PL=5
  11. PT=1e-005
  12. Pn=-8,4,14,"Times New Roman"
  13. Pc=24
  14. Po=0.01,50,664
  15. PD=800x600
  16. Pf=0x0
  17. Pr="stub"
  18. Ps=1568,0,0,1088,0,0
  19. Pd=17
  20. PM=1,1,1,1
  21. N.1="integrator"(0,1)*67x17
  22. N.2="integrator"(0,0)*41x22
  23. N.3="plot"*105x11*85x61
  24. pt="Damped Harmonic Oscillator"
  25. px="Time (sec)"
  26. py="meters/sec"
  27. pax=0
  28. pf=H
  29. pf=x
  30. pf=F
  31. pb=40,-30
  32. pbx=2,0
  33. pbY=40,-30
  34. pbX=20,0
  35. pc=512
  36. pm=10
  37. pb.0=2,0
  38. pL.0="Position"
  39. pb.1=6,-6
  40. pL.1="Velocity"
  41. pb.2=40,-30
  42. pL.2="Acceleration"
  43. pb.3=0,0
  44. N.4="variable"*80x17
  45. n="x"
  46. N.5="variable"*66x22
  47. n="xDot"
  48. N.6="gain"(0.02)*8x37
  49. N.7="gain"(32.2)*48x35
  50. N.8="summingJunction"*31x33#3,1
  51. N.9="const"(1)*14x35
  52. N.10="variable"*12x33
  53. n="x"
  54. N.11="variable"*8x43<R>
  55. n="xDot"
  56. N.12="variable"*81x47
  57. n="xDotDot"
  58. N.13="variable"*17x22
  59. n="xDotDot"
  60. N.14="variable"*81x32
  61. n="xDot"
  62. N.15="comment"*34x0*127x64<M>
  63. C="We've chosen this block diagram of a classic damped harmonic oscillator to introduce you to VisSim's extensive design and simulation capabilities. The differential equation representing the harmonic oscillator in SPRING.VSM is:
  64.  
  65. x\"t+(32.2*0.02)*x'+32.2*x+32.2=0
  66.  
  67. Which can be rewritten as: 
  68.  
  69.  x\" = 32.2(1- x - .02 * x').
  70.  
  71. Where x\" is the second derivative and x' is the first.
  72.  
  73. FIRST THINGS YOU NEED TO KNOW
  74.  
  75. 1.  Use the scroll bar to move through this text.
  76.  
  77. 2.  Unless stated otherwise, when you read \"click the mouse\" or \"hold down the mouse button,\" use the left mouse button.
  78.  
  79. 3.  If the text is difficult to read, click on VIEW in the menu bar and choose the FONTS command. In the SIZE box, enter a larger point size and click on the OK button.
  80.  
  81. 4.  When you're ready to return to SPRING.VSM, click the right mouse button on empty screen outside this text window.
  82.  
  83. 5.  If you get stuck using VisSim, you can return to this introductory text or use VisSim's online HELP program, which is accessible via the HELP menu item in the VisSim menu bar.
  84.  
  85. MOVING AROUND THE SCREEN 
  86.  
  87. If SPRING.VSM doesn't fit on the screen, use the scroll bars located at the bottom and right-hand side of the screen to move parts of the diagram into and out view. If the scroll bars are not present:
  88.  
  89. 1. From the EDIT menu, choose the PREFERENCES command.
  90.  
  91. 3.  Activate the SHOW HORIZONTAL SCROLL BAR  and SHOW VERTICAL SCROLL BAR parameters.
  92.  
  93. 4.  Click on the OK button.
  94.  
  95.  
  96. MOVING BLOCKS
  97.  
  98. If blocks are overlapping each other on your display, you can easily rearrange them. To move individual blocks:
  99.  
  100. 1.  Point to the block to be moved and hold down the mouse button.
  101.  
  102. 2.  Drag the block to a new location.
  103.  
  104. 3.  Release the mouse button.
  105.  
  106.  
  107. EXAMINING AND CHANGING BLOCK PARAMETERS
  108.  
  109. Block parameters let you set simulation invariant properties of a block's function. Most of the block's in SPRING.VSM have parameters associated with them. To examine a block's parameters:
  110.  
  111. 1.  Point to a block and click the right mouse button. If the block has user-settable parameters, a Change Parameters dialog box appears listing the parameter values for the block. If the block you click on is a compound block, the screen is refreshed with the next lower level in the block's hierarchical composition.
  112.  
  113. 2.  If you want to change a parameter value, point to the parameter you want to change and click the mouse.
  114.  
  115. 3.  Type in the new value. If the parameter is a radio button or check box, click on the parameter to activate or de-activate it.
  116.  
  117. 4.  Click on the OK button.
  118.  
  119.  
  120. SIMULATING SPRING.VSM
  121.  
  122. 1.  From the SIMULATE menu, choose the GO command.
  123.  
  124. The simulation results are interactively plotted in the large plot block on the right-hand side of the screen.
  125.  
  126.  
  127. CHANGING SIMULATION PARAMETERS
  128.  
  129. 1. From the SIMULATE menu, choose the SIMULATION SETUP command. A  dialog box of user-settable simulation parameters appears.
  130.  
  131. 3.  Enter new simulation parameters.
  132.  
  133. 4.  Click on the OK button.
  134.  
  135.  
  136. EXAMINING SIMULATION RESULTS
  137.  
  138. Each sample block diagram contains at least one plot block in which simulation results are dynamically displayed. In SPRING.VSM, the plot block is named DAMPED HARMONIC OSCILLATOR. You may want to enlarge this plot block for a better view of the simulation results. One way to enlarge the plot is to:
  139.  
  140. 1.  Click on the MAXIMIZE box in the upper right-hand corner of the block. 
  141.  
  142. Another way is to:
  143.  
  144. 1.  Point to the plot block's border.
  145.  
  146. 2.  Hold down the mouse button.
  147.  
  148. 3.  Drag the border to the desired size.
  149.  
  150. 4.  Release the mouse button.
  151.  
  152.  
  153. CUSTOMIZING PLOTS
  154.  
  155. VisSim's plot blocks have powerful plotting capabilities, including XY, time history, discrete, and FFT plots; log, semi-log, and linear axis scaling; auto-scaling; over plotting; color coding; geometric markers; grid lines; and signal labeling. To customize a plot:
  156.  
  157. 1.  Point to the plot block and click the right mouse button. A Plot Setup dialog box appears.
  158.  
  159. 2.  Enter the new plotting parameters. For example, de-activate the XY PLOT parameter to view the simulation results in a phase plane plot.
  160.  
  161. 3.  Click on the OK button. 
  162.  
  163. "
  164. N.16="Compound"*8x63<C>
  165. n="Press Right Mouse Button Here for Info"
  166. Ms=1555,0,0,1060,0,0
  167. N.17="comment"*53x65*77x6<M>
  168. C="Press the right mouse button over empty screen outside these windows to return to SPRING.VSM."
  169. N.18="variable"*61x35
  170. n="xDotDot"
  171. N.19="wireLabel"*62x1
  172. n="2nd Order Damped Harmonic Oscillator"
  173. N.20="date"*158x2
  174. N.21="wireLabel"*68x3
  175. n=" x\" = 32.2(1- x - .02 * x')"
  176. N.22="wireLabel"*88x44
  177. n="Acceleration"
  178. N.23="wireLabel"*88x29
  179. n="velocity"
  180. N.24="wireLabel"*87x15
  181. n="position"
  182. I.1.i1=2.o1
  183. I.2.i1=13.o1
  184. I.3.i1=4.o1
  185. I.3.i2=14.o1
  186. I.3.i3=12.o1
  187. I.4.i1=1.o1
  188. I.5.i1=2.o1
  189. I.6.i1=11.o1
  190. I.7.i1=8.o1
  191. f8.1.i=-
  192. I.8.i1=10.o1
  193. I.8.i2=9.o1
  194. f8.3.i=-
  195. I.8.i3=6.o1
  196. G.16=15,17,
  197. I.18.i1=7.o1
  198.