How to call the pushbutton callback function from stateflow

1 view (last 30 days)
I am trying to get input from edit text box of gui to stateflow and to display output in stateflow. But am getting some other value than what am giving in gui. what could be passed as arguments to the callback function to get proper output.
function speed() cspeed=new_jul22('@ConveyorSpeed', '', '') end
function c_speed=ConveyorSpeed_Callback(hObject, eventdata, handles) % hObject handle to ConveyorSpeed (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) c_speed=str2num(get(handles.ConveyorSpeed, 'string')) end
When am typing 100 as input in ConveyorSpeed text box, am getting output ad 170.0024. But I should get the same 100 as output.
Can any1 help me..???

Answers (0)

Categories

Find more on Complex Logic 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!