Why is my GUI program producing an error when i press the acquisition button?

Error using matlab.ui.control.UIControl/get
There is no QString property on the UIControl class.
Error in Z_scan_Servo_motor2>botao_Iniciar_Callback (line 94) measurements=str2num(get(handles.display_Measurements,'QString'));
Error in gui_mainfcn (line 95) feval(varargin{:});
Error in Z_scan_Servo_motor2 (line 42) gui_mainfcn(gui_State, varargin{:});
Error in @(hObject,eventdata)Z_scan_Servo_motor2('botao_Iniciar_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback

回答(1 个)

The error message is clear:
There is no QString property on the UIControl class.
Remove the "Q":
measurements=str2num(get(handles.display_Measurements,'QString'));
^

此问题已关闭。

标签

关闭:

2021-8-20

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by