I would like to bind button's callback to default save function, any advices? That means it pops a window for the user. not command save function.
Best Answer
If by "default save function" you mean the save built-in function, I'm confused by your later statement that "it pops a window for the user" since the save function does not show any window.
I suspect you want to bring up a dialog allowing the user to specify the file and directory in which to save the data then call save to save data in that location. In that case the uiputfile function may be of use to you. [As the Note on its documentation page states, uiputfiledoes not actually save the data, it just gives you a filename you can pass into save.]
If that's not what you're trying to do, please clarify with a bit more detail of what your end goal is.
1. Since you have to record continuously, it is better to set "FramesPerTrigger" to Inf instead of setting "TriggerRepeat" to Inf. This is because, when "TriggerRepeat" is Inf it will capture specified number of frames only when the trigger condition is met. Thus, setting "FramesPerTrigger" to Inf is more reliable in capturing all the frames.
2. There is no direct command in MATLAB that I know of is able to do that.
Best Answer