Why do I get this error?
Version A13 Pro
Code:
clear classes
clear all
srate = 48000;
SYS=target_system('ancTest', 'ANC Test Bed');
add_pin(SYS, 'input', 'mics', 'MIC inputs', new_pin_type(3,96,48000));
add_pin(SYS, 'output','spks', 'Speaker Outputs',new_pin_type(3,96,48000));
add_module(SYS, router_module('Router1',1,3));
SYS.Router1.channelIndex = [0;2;3];
add_module(SYS, periodic_function_gen_module('rpm', 48000, 96));
Error:
Struct contents reference from a non-struct array object.
Error in awe_variable_subsref
Error in awe_module/subsref
Error in periodic_function_gen_module (line 94)
add_variable(M, 'offsetRad', 'float', (M.offset/180)*pi, 'derived', 'Offset in radiuns.', 1);
Error in test (line 13)
add_module(SYS, periodic_function_gen_module('rpm', 48000, 96));
12:45pm
If I run this code while awe_designer is running, I get the error shown in the first post and awe_designer locks up. I can move modules but I cannot delete modules. Also the menu does not work. I can close the awe_designer window by clicking the X in the upper right corner of the window.
4:21pm
Doing a clear all and clear classes is not good to do while the server is running . My bad. Hope you enjoyed the read.
5:35pm
Okay, thanks for the input! Make sure to close the server and designer windows if using the matlab "clear all" command =)