Daemonic - you should be able to call the callback as you would any other function provided that you pass in the correct parameters (in particular, the handle to the control that you wish to invoke the callback on).
But instead of doing this, why not create a function that has the code common to your two callbacks and invoke that from both? Your code would then look something like
function Record_Callback(hObject, eventdata, handles)
RecordStatus = get(hObject,'Value');
runstr=get(hObject,'string');
if RecordStatus == 1
else
StopRecording(handles);
end
In your timer stop function (which perhaps could be named OnTimerStoppedCallback or something similar), you would do
function StopRNG_callback(obj,event,hObject)
StopRecording(guidata(hObject);
Finally, your StopRecording function would do all of the work
function StopRecording(handles)
All the code to stop the recording is in one function that is called by either callback.
Best Answer