Hello,
I am creating a custom module for the first time and would like to know how to add
pin and variables.
I wrote the following in the m file:
PT=new_pin_type([], [], [], '*32', []);
PT2=new_pin_type([], [], [], '*32', []);
add_pin(M, 'input', 'in', 'check', PT);
add_pin( M, ‘input’, ‘pin2’, ‘mycheck2’, PT2);
When placed in the AWE designer, I get the following:
mod_to_canvas.p(0):. RenderPins failed: failed,-50,pin2,,
mod_to_canvas.p(0):. UpdateProperties failed: failed,-13,no such property as 'var.gain
Do I need to do any additional work after writing this in the m-file?
Could you please help me find out where the problem is?
best regard.
9:52am
Hi Sone-san,
See the definition of the add_pin function here.
Add Pin
One thing to notice, although it would not cause this problem, is that PT and PT2 have the same arguments and are creating an identical pin "type". There's no need to do this, as you can reuse a pin type to create more than 1 pin with the same type.
Do you know where this is coming from?
var.gain
Is that somewhere in your module.m file? Can you post the entire file?
Thanks,
Gary