Greetings,
The AWE Matlab API document says: "... controlType='dropList'. For each allowable integer value, you can specify a string to provide an easy-to-read drop list.".
I've searched the docs, forum and web on how to do this without success. In my case the application is for a custom awe block being developed with Pro.
Can some enlighten me?
Thanks,
Steve.
12:56pm
Hey Steve,
Using the delay_module.m as a source:
add_argument(M, 'memHeap', 'int', MEMHEAP, 'const', 'Memory heap in which to allocate state buffer');
M.constructorArgument{end}.guiInfo.controlType='dropList';
M.constructorArgument{end}.guiInfo.nameValueList='AWE_HEAP_FAST=1 AWE_HEAP_SLOW=2 AWE_HEAP_FASTB=3 AWE_HEAP_FAST2SLOW=561 AWE_HEAP_FASTB2SLOW=35';
These lines add the drop-down list functionality to the memHeap argument to the Delay module.
Try adding this to your custom module and regenerating the code. Note that if you are creating a subsystem instead of a module, use 'SYS.constructor...' instead of 'M.constructor...'.
Let us know if this doesn't solve your problem.
-Axel
1:25pm
Found it by search existing code. Ex: ...guiInfo.nameValueList='Off=0 On=1'
Steve.