Error in MATLAB level 2 S-Function registering method

11 ビュー (過去 30 日間)
Bisrat Gezahegn
Bisrat Gezahegn 2016 年 10 月 8 日
編集済み: Walter Roberson 2016 年 10 月 8 日
I have found an error evaluating the initialization for MATLAB level 2 S-Function.
'Error registering method for 'SetInputPortSamplingData' is unknown'
but my internal registry for the block method look like this ....
block.RegBlockMethod('SetInputPortSamplingData',@SetInputPortSamplingData);
%%set the sampling ot the input ports......................................................................................................
function SetInputPortSamplingData(block,idx,fd)
block.InputPort(idx).SamplingMode = fd;
for i=1;block.NumoutputPorts
block.outputPort(i).SamplingMode = fd;
end

回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by