Plecs Blockset and matlab

Hi all, I want to call a plecs blockset model (matlab simulink) into a script on matlab to do some optimisation technique. What i need some data ( error) from the controller in plecs blockset. I set it as an output and it appears on the similink window, used to workspace but the problem when I run the code and want to call the model, it gives an error which is ( unrecognised error function)-which i have already set an output earlier. Plz any help?-thank you.

You would need to at the very least provide a screenshot of the error message, but most likely, also provide your model files, for us to help troubleshot this for you.