How to export just the last waveform periods by scripting?

Hi

I’m referring Buck Converter with Parameter Sweep example

I would like to export only the last periods of waveforms, to do that I generate a signal trig and enable a datacapture block. However it export all the signals long.

Instead using a file method it works (see datacapture block)

how can I do? thanks

boost_NIBB_coupled_plot.plecs (114 KB)

Hello,

I don’t fully understand the question as it appears that you are successfully exporting the data, starting only after a pre-specified period of time using a triggered subsystem. Are you expecting something different? I have attached a modified version of the demo model your refer to that shows the same method to do this.

Best regards,

Kris

Boost_save_to_file_upon_trigger.plecs (15.3 KB)