home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
MATH
/
VISSIM.ZIP
/
MENU.C
< prev
next >
Wrap
C/C++ Source or Header
|
1994-03-07
|
988b
|
32 lines
#include <windows.h>
#include "vsuser.h"
/* User menu Table */
USER_MENU_ITEM um[] = {
/* level 1 menu name, DLL name, -1,-1 */
{"Chiller Units", "nnet", -1,-1}, /* level 1 block menu item */
/* menu name, function name, input count, output count */
{"1200 BTU", "neuralNet", 5,1, 2,"Small rooftop unit"}, /* level 2 menu item #1 */
{"5000 BTU", "fuzzyNet", 2,1}, /* level 2 menu item #2 */
{"Scroll Compressor", "scroller1", 2,1}, /* level 2 menu item #2 */
{0} /* End of table */
};
USER_MENU_ITEM um2[] = {
{"Fuzzy Controllers", "nnet", -1,-1},
{"1 Valve", "fzvalve1", 1,1},
{"10 Valves", "fzvalve10", 10,1},
{0}
};
/* This function will be called by VisSim if the DLL in which it resides
* is placed in the \windows\vissim.ini file with the line:
addon=<dll file name>
*/
int _export PASCAL vsmInit()
{
/* Each following line adds a block item list to the Blocks menu */
setUserBlockMenu(um);
setUserBlockMenu(um2);
}