Is there a way to plot different virtuoso calculator functions depending on simulation time? I have 3 modes/phases in my run. I can plot a different function for each one, but what I would ideally like is to have one plot showing function 1 up to sim time A, then function 2 from sim time A to sim time B, then function 3.
I tried using 3 clips and adding the results, but clip does not zero the result outside the selected regions, so I end up with strange offsets for each section.
Does some contrsuct like the below exist?
if (sim_time<A) function 1 else if (sim_time<B) function 2 else function 3
You probably want to concatenate the waveforms rather than adding - see solution 11522792 for some code which allows you to do this easily in the calculator.
In reply to Andrew Beckett:
Thanks Andrew - this works fine. Would be slightly better for me if the waveform was zero-ed between segments rather than joining the last point of one to the first of the next, but then I guess to "fix" this should be an "exercise for the reader" to learn some skill :-)
This definitely gives me what I needed - thanks!