> How to export the data to MATLAB at the moment of the event occurs like the figure below ?
The Export to CSV from the scope is the only option at the moment for embedded targets. You can will have to set up your external mode triggers such that you capture the event - for example, set the trigger channel to when the SRF Vd goes below 0.95.
You can also time shift and set a delay. See the following video at T=4:00 on how to configure this. I find dragging the trigger in the active scope window to be most convenient, as explained in the video.
If the event is periodic and you want to capture just one instance, click the “Manual Trigger” option instead of the autotrigger.
> Also, how to design the event occured at a specified time?
It’s not clear to me why the minima is different. One theory is that the Decimation setting is set too high (40) as you are capturing just one sample showing the minimum value. There are 39 samples you may be missing that show the true minimum. I would decrease the decimation to get more samples during the transient event to see if the results are more consistent.