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

Answers (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'));
^

This question is closed.

Tags

Asked:

on 6 Sep 2018

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!