Error evaluating init fcn callback
Show older comments
Hello i have a custom installed library. When i use the block from the libary in my simulink model , i got an error saying " Error evaluating 'InitFcn' callback of AMS ADC Interface block (mask). The code written in block properties for init fcn is as given :
app123 = getenv('EN_LIB_PATH');
app123=[app123 '\src'];
copyfile(app123,'.');
I think the EN_LIB_PATH should be replaced with the libary path. But I'm confused. Should I use the path to the folder/libary or the slblocks.m file ?
please get me a solution soon. matlab version : R2012a
Answers (0)
Categories
Find more on Model, Block, and Port Callbacks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!