saman zandi - 2016-05-02

Hi dear ,
I am trying to link Gridlabd with Matlab. I have executed a sample code “subsecond_diesel_generator_example.glm” but I got these errors in Matlab while with the same sample code in gridlab itself everything is ok.
Is there any instruction to be added in glm file?
Errors, i got in matlab are like this:
Error using icinterface/fopen (line 83)
Unsuccessful open: Connection refused: connect
Error in core (line 22)
fopen(socket);
Error in GridMat>debug_pushbutton_Callback (line 159)
core(handles);
Error in GridMat>run_pushbutton_Callback (line 170)
debug_pushbutton_Callback(hObject, eventdata, handles);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in GridMat (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in @(hObject,eventdata)GridMat('run_pushbutton_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback
best regards,
saman,