Back to Forums
4 posts / 0 new
Last post
#1 Oct 2, 2017
E.android
E.android's picture
Offline
Last seen: 6 years 2 months ago
Joined: 2017-09-20 19:01

How to Plot AC transfer Data from File?

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?

Wed, 2017-10-04 10:12
RobertoGb
RobertoGb's picture
Offline
Last seen: 5 years 10 months ago
Joined: 2016-05-24 03:10

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

Wed, 2017-10-04 12:57
E.android
E.android's picture
Offline
Last seen: 6 years 2 months ago
Joined: 2017-09-20 19:01

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?

Wed, 2017-10-04 13:26 (Reply to #3)
E.android
E.android's picture
Offline
Last seen: 6 years 2 months ago
Joined: 2017-09-20 19:01

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.

Download PSpice and try it for free! Download Free Trial
Cadence