I've created a very simple AudioWeaver (version 8.2025.2A Pro) model to be run natively on server/PC (no external hardware) with a BiquadCascadeV2 block that I'd like to control via a Matlab 2024b script. The problem I'm having is that after I change the number of stages from 2 to 3 within Matlab and updating the design (using set_gsys), the block display in Canvas shows the new correct number of stages (when I hit propagate changes button), but when I right click and select Attributes, the Module Properties arguments field still shows gain stages equal to 2. This is limiting my being able to set the coefficients in Matlab. See code below.
1. How do I get the number of stages to update properly from within Matlab or this a bug?
2. Is it necessary to use propagate changes in this workflow and is there a way to execute this from within Matlab (and not the Designer GUI)?
Thank for your help.
awe_designer
modelname = 'test1.awd'
GSYS.SYS.BiquadCascadeV2_1.numStages = 3; % increase stages from 2 to 3
set_gsys(GSYS,modelname); %
GSYS = get_gsys(modelname); % pull model that is already open in AW designer GUI
coeffs = transpose(sos(:,[1:3,5:6])); % sos is defined elsewhere as 3x6 double
GSYS.SYS.BiquadCascadeV2_1.coeffs = coeffs; % gives error since numStages is still 2
set_gsys(GSYS,modelname);