GUI commands transition from R2007 to R2018
Show older comments
Hello, I need to update data aquisition software from R2007 to R2018 and add PID controller. Script seems to work after transition from legacy based inerface to session based, but I have multiple errors when push bottons in gui:
Error using neurosys_4v5>DCLED_BUTTON_Callback (line 1051)
When using session based operations, use outputSingleScan.
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in neurosys_4v5 (line 41)
gui_mainfcn(gui_State, varargin{:});
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)neurosys_4v5('DCLED_BUTTON_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
Lines 1050 - 1053:
else
putsample(handles.out,[0 get(handles.DCLAMP_BUTTON, 'value')*str2double(get(handles.DCLAMP_VALUE, 'String'))...
handles.DC_OFFSET+0 handles.DC_OFFSET+0]);
end
Error using neurosys_4v5>loadstimulus (line 859)
When using session based operations, use outputSingleScan.
Error in neurosys_4v5>loadstimpushbutton_Callback (line 1072)
[handles] = loadstimulus(handles);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in neurosys_4v5 (line 41)
gui_mainfcn(gui_State, varargin{:});
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)neurosys_4v5('loadstimpushbutton_Callback',hObject,eventdata,guidata(hObject))
Lines 858-862:
else
putsample(handles.out,[0 get(handles.DCLAMP_BUTTON, 'value')*str2double(get(handles.DCLAMP_VALUE, 'String'))...
handles.DC_OFFSET+handles.L_gain*get(handles.tpl_checkbox,'Value')*handles.DCLED_ON*handles.DCLED-handles.DC_OFFSET*(handles.DCLED_ON > 0)...
handles.DC_OFFSET+handles.L2_gain*get(handles.tpl2_checkbox,'Value')*handles.DCLED_ON*handles.DCLED-handles.DC_OFFSET*(handles.DCLED_ON > 0)])
end
lines 1071-1073:
function loadstimpushbutton_Callback(hObject, eventdata, handles)
[handles] = loadstimulus(handles);
guidata(hObject, handles);
could you please tell where I can find any instructions how to update these commands & fix error messages for gui?
Accepted Answer
More Answers (1)
Irina
on 18 Jun 2024
Categories
Find more on Graphics Performance 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!