Hello,
I'm looking to duplicate functionality from LTSpice in PSpice. The goal is to be able to plot a set of AC gain and phase data from an included text file, allowing me to compare that response to the one of a circuit I'm actively developing. In LTSpice, the text file must have four columns as shown in the first image: '+' to allow for multiple lines, frequency value, magnitude (in dB) value, and phase (in degrees) value.
The data can then be plotted with a simple B source as shown in the second image. Can anyone please advise me on how to do this in PSpice?
Copyright © 2020 Cadence Design Systems, Inc. All rights reserved.
Hi,
As far as I know, the only possibility in PSpice for that is to use the component FTABLE or EFREQ from the library ABM. The only issue is that it is not possible to read the data from a text file. You have to input the frequency values in the table property.
FTABLE:
EFREQ:
I hope it helps. Regards
Hi RobertoGb,
Thank you very much for the suggestion! The FTABLE will work for what I need.
The only issue is that I have data with potentially over a thousand points, and it's not practical to have to add 1000 rows to the properties of the table. Is it possible to somehow declare the FTABLE via text on the schematic and be able to simply paste in all my points at once?
I solved the issue by declaring the FTABLE using text and the "@PSpice:" header, then dumping all the data in the text field as well. It's not pretty, but it works.