Please I need this function on plecs c script, please I did not get it. Here it is
function [ma, mb] = fcn(u, t, theta, f)
ma = usin(2pift+(theta*pi/180));
mb = usin(2pift+pi+(theta*pi/180));
Please I need this function on plecs c script, please I did not get it. Here it is
function [ma, mb] = fcn(u, t, theta, f)
ma = usin(2pift+(theta*pi/180));
mb = usin(2pift+pi+(theta*pi/180));
Rather than use a C-Script, I would recommend implementing this using basic blocks from the PLECS Component Library.
You can use the Trigonometric Function, Gain or Product, and Sum blocks. The “Function” block would also be suitable as it allows you to “Apply arbitrary arithmetic expression to scalar or vectorized input signal”.