Hello DSPC Team,
I’m developing a custom module, and I’d like it to output twice as many samples as the number obtained from ClassWire_GetNumSamples().
For example, if ClassWire_GetNumSamples() returns 128, I want the output pin to produce 256 samples.
Is it possible to do this in a custom module?
6:42pm
Hi Sone-san,
Try something like this in your module's MATLAB file's prebuild function. This is extracted from the BufferUp module.
Let me know if this helps.
Thanks,
Gary
4:16am
Hello DSPC_Gary,
OK, thank you for showing me how to implement it. I really appreciate your help.
12:39am
Hello DSPC Team,
I tried your suggestion, but it didn’t work as expected.
There seems to be a specific condition:
When an inputPin is configured, the outputPin’s blockSize always matches the inputPin’s blockSize.
When there is no inputPin (output only), it works correctly.
Is there any additional setting or step required to make it work when an input pin is present?
I’ve attached the MATLAB file I used for testing for your reference.
I would appreciate any further advice.
11:24am
Hi,
Please see "C:\DSP Concepts\AWE Designer 8.2025.2.A Pro\AWEModules\Source\Examples\matlab\downsampler_example_module.m" for an example. You should have a prebuild function in your module's MATLAB script.
and further down...
Thanks,
Gary