Hi,
I added an argument to my module using this line of matlab code:
add_argument(M, 'maxDelay', 'int', 4096, 'parameter', 'max delay (samples)');
(also tried with 'const' iso 'parameter' and many other variations).
The argument appears in the properties of the module in AWE designer,
but each time I edit the value it immediately changes back to the default value specified in matlab.
I have this problem with version 8.D.1.1 Pro and 8.D.2.1 Pro, although the release notes of the latter version state:
"Fixed issue with layout variables where module arguments were being overwritten with defaults"
In version 8.C.1.3.C Pro this works fine.
Any suggestions on how I can get the module argument working with a 8.D.* Pro version ?
Kind regards,
Joris.
6:28pm
Hi Joris,
I am sorry you had face this issue. Can you please use the 'my_new_module .m' file attached here as an example, we have verified it on 8.D.2.1 Pro version. As for the issue we have filed a bug to look into the problem.
Hope this helps.
--Karishma
11:38am
Hi Karishma,
I saw that it works with the example module you provided,
and based on that could fix my own module.
It seems that the call to the add_argument function needs to happen immediately after the call to the awe_module constructor,
whereas initially I had put the add_argument further on in the code of my module.
So problem fixed from my perspective,
thank you for your help !
Kind regards,
Joris.
12:50pm
Glad to be of help! Hope you have a good day ahead!