Is it possible to save a waveform from one sim into .qraw, then play that waveform in other sim with B-source or something else?

Hi All

As the title.

Is it possible to save a waveform from one sim into .qraw, then play that waveform in other sim with B-source or something else?

As this is a PWL source, I recommend adding the attribute “TIMECTRL=breaks”, which ensures breakpoints are included in timestep control; otherwise, the data may be interpolated.

Or, you can export it to a CSV file and use PWL FILE to call it. This way, you don’t have to embed the entire dataset into a PWL source in the schematic.

I don’t think there is a way to read a .qraw file directly from a PWL source. However, you can automate the export process using the .system command. This means you would run the first schematic to automatically export a .csv file, and then run a second schematic that uses PWL FILE to read that .csv file. This is likely the closest solution to what you are looking for.

Export to csv does not work properly? - QSPICE - Qorvo Tech Forum

As always SuperKelvin saves the day… thanks!

Right, .csv should also be just fine

I somehow remember that such feature exist but I am not sure where to find the documentation.

Anyway, I was actually asking for this because now I have been using PLECS for my work. Then I find that PLECS improve the bode noise rejection by running many paralel sim for data with perturbation + 1 base sim without perturbation.

And I extrapolate the idea (unconfirmed) that they use the base sim without perturbation to obtain the switching noise, which is used to substract the switching noise on sim with perturbation. Considering bode is supposed to be small signal, the difference in duty cycle or Fsw(in case of LLC) between the base sim and perturbed sim should be small. Thus, their method to substract noise should work.

Right, the PLECS support send me this link

Well, they remove the noise in the frequency domain instead of time domain…

PLECS is interesting—it looks like a bunch of researchers solving problems, and it even uses MATLAB syntax.