home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / MATH / VISSIM.ZIP / MENU.C < prev    next >
C/C++ Source or Header  |  1994-03-07  |  988b  |  32 lines

  1. #include <windows.h>
  2. #include "vsuser.h"
  3.  
  4. /* User menu Table */
  5. USER_MENU_ITEM um[] = {
  6. /* level 1 menu name, DLL name, -1,-1 */
  7.   {"Chiller Units", "nnet", -1,-1}, /* level 1 block menu item */
  8. /* menu name, function name, input count, output count */
  9.   {"1200 BTU", "neuralNet", 5,1, 2,"Small rooftop unit"}, /* level 2 menu item #1 */
  10.   {"5000 BTU", "fuzzyNet", 2,1},  /* level 2 menu item #2 */
  11.   {"Scroll Compressor", "scroller1", 2,1},  /* level 2 menu item #2 */
  12.   {0} /* End of table */
  13.   };
  14.  
  15. USER_MENU_ITEM um2[] = {
  16.   {"Fuzzy Controllers", "nnet", -1,-1},
  17.   {"1 Valve", "fzvalve1", 1,1},
  18.   {"10 Valves", "fzvalve10", 10,1},
  19.   {0}
  20.   };
  21.  
  22. /* This function will be called by VisSim if the DLL in which it resides
  23.  * is placed in the \windows\vissim.ini file with the line:
  24.      addon=<dll file name>
  25.  */
  26. int _export PASCAL vsmInit()
  27. {
  28. /* Each following line adds a block item list to the Blocks menu */
  29.   setUserBlockMenu(um);
  30.   setUserBlockMenu(um2);
  31. }
  32.