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

  1. ; VisSim Block Diagram Format (VBDF)
  2. ; Copyright (C) 1989-1994 Visual Solutions
  3. PV=1.500
  4. PS=0
  5. PE=14
  6. PP=0.05
  7. PI=170
  8. PX=0.05
  9. PN=1e-006
  10. PL=5
  11. PT=1e-005
  12. Pn=-10,6,16,"Times New Roman"
  13. Pc=12
  14. Po=0.01,50,664
  15. PD=800x600
  16. PR=
  17. Pf=0x0
  18. Pr="stub"
  19. Ps=784,0,0,546,0,0
  20. Pd=777
  21. PM=1,1,1,1
  22. N.1="const"(5)*4x38
  23. N.2="ramp"(0,2)*4x30
  24. N.3="meter"(-100,100)*69x27*56x34#4,0
  25. n="Level"
  26. Tt=1
  27. Tw=0,0,50,"Inflow"
  28. Tw=1,0,20,"Outflow"
  29. Tw=2,0,100,"% Full"
  30. Tw=3,0,30,"Capacity"
  31. N.4="display"(25)*51x62
  32. N.5="wireLabel"*52x59
  33. n="Capacity of tank"
  34. N.6="comment"*5x0*60x18
  35. C="This block diagram simulates waterflow in a tank. It contains a userFunction block named TANK.LEVEL that calculates the change in water content in the tank as a percentage of tank capacity. All the values are assumed to be in the same units. Change the tank capacity and initial water level in the dialog box for TANK.LEVEL.
  36.  
  37. The C source file for the TANK DLL uses the Parameter Allocation, Parameter Initialization and Parameter Change functions, as described in the VisSim User's Guide."
  38. N.7="wireLabel"*3x32
  39. n="Inflow"
  40. N.8="wireLabel"*3x40
  41. n="Outflow"
  42. N.9="userFunction"(25,5)*18x54#2,2
  43. n="tank.level"
  44. N.10="wireLabel"*61x50
  45. n="% Full"
  46. N.11="wireLabel"*30x45
  47. n="Tank full alarm signal"
  48. N.12="light"(0,0,100)*36x48
  49. I.3.i1=2.o1
  50. I.3.i2=1.o1
  51. I.3.i3=9.o1
  52. I.3.i4=9.o2
  53. I.4.i1=9.o2
  54. I.9.i1=2.o1
  55. I.9.i2=1.o1
  56. I.12.i1=9.o1
  57.