本帖最后由 13066249800 于 2020-6-17 17:30 编辑
调用不了Pulse Generator 求解情况如图(整流电路仿真) 代码:
m=str2num(get(handles.J2,'String'));
a=m*0.02/360;
set_param('shiyan2/Pulse↵Generator','PhaseDelay',a)
报错:
错误使用 GUI2>K2_Callback (line 97)
Invalid Simulink object name: shiyan2/Pulse?Generator
出错 gui_mainfcn (line 95)
feval(varargin{:});
出错 GUI2 (line 42)
gui_mainfcn(gui_State, varargin{:});
出错
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)GUI2('K2_Callback',hObject,eventdata,guidata(hObject))
Caused by:
错误使用 GUI2>K2_Callback (line 97)
No block called 'Pulse?Generator' could be found.
计算 UIControl Callback 时出错。 |