Dear DSPC Team,
I am trying to reconfigure a feedback wire connection in a sub-system.
I found the above function in the the Matlab-API document, but the example of how to use it seems to be incorrect.
The example is as follows:
SYS=set_feedback_pinType(SYS, SYS.connection{end}, feedbackPinType);
This field (connection) is always empty in all the systems I've been using, no matter the number of connections in the system (systems that passes the build(SYS) function of course).
Any assistance will be much appreciated.
Thanks,
Sharon.
9:01pm
Hi Sharon,
There have been a few changes to the Audio Weaver MATLAB structures, and the 'connection' list is no longer an available field. There are also a couple of additional feedback wire properties. I recommend upgrading to Designer 8.C.2.7 which was just released (https://w.dspconcepts.com/downloads), and if you are following the example in the Audio Weaver MATLAB API document, use the following lines of code after feedbackPinType.isComplex = -1;:
feedbackPinType.clockDivider=1;
feedbackPinType.initialValueReal = [];
feedbackPinType.initialValueImag = [];
C = findconnection(SYS, 'delay', 'out', 'scale', 'in1');
SYS=set_feedback_pinType(SYS, C{1}, feedbackPinType);
We will work on updating the documentation example for future releases.
Thanks,
Michael
12:42pm
Great! It works!
Thanks,
Sharon.