I have a DCSource Int feeding a paramset table V2 module. I am setting a mixer modules gain variable via the MOD.var nomenclature. I can see a dashed line around the Mixer module as well as the controlled by text under it showing the ParamSet table name. I can not get the gain array to update when changing the DCSource value nor can I get it to update by manually changing the index value in the Set param Table module. I have tried all available update methods in the Paramset Table nothing I do seems to update the gain array. Does the changes to Mixer.gain get updated in the GUI real time? I have also tried reading the Mixer.gain in matlab and it also does not reflect any updates. What am I missing?
2:04pm
Hi pleslie,
The gain inspector of the mixer does not update when the gain is set using a ParamSetTable or any other means other than entering the gain values directly into the mixer's table.
I'm attaching an AWD that hopefully will help you visualize the gain changes and which elements in the ParamSetTable control which elements in the MixerV3's gain array.
I have 4 sine waves at easily distinguishable frequencies being interleaved onto a single wire and then feeding into the mixer when the Multiplexor index = 1 (checkbox selected).
The DC Source goes from 0 to 3 to pick off 1 of 4 sets of values in the ParamSetTableV2.
Each set of gain values is one of the columns. The upper half of the column affects Mix1 and the lower half affects Mix2.
Build and run the layout.
Open RebufferedSink1.
As you change the value of DC1, the values in the ParamSetTable are sent to the Mixer 8 at a time.
Index = 0
Ch1 = 0.25 200 Hz (mixer input channel 1)
Ch2 = 0.2 200 Hz (mixer input channel 1)
Index = 1
Ch1 = 0.5 400 Hz (mixer input channel 2)
Ch2 = 0.4 400 Hz (mixer input channel 2)
and so on.
While you can put values into the Mixer's gain array directly, these will be overwritten immediately by the ParamSetTableV2 unless you set it to "Inactive".
You can use the ParamGetV2_1 to see values being sent to the MixerV3_1, 1 at a time by changing the array index from 0 to 7 in the modVar argument.
Let me know if this helps.
Thanks,
Gary