Home > Community > Forums > PCB Design > Pspice help: calculating autocorrelation of a time domain voltage

## Email

Recipients email * (separate multiple addresses with commas)

Message *

 Send yourself a copy

## Subscribe

Intro copy of the newsletter section here, some intro copy of the newsletter. Instruction of how to subscribe to this newsletter.

First Name *

Last Name *

Email *

Company / Institution *

 Send Yourself A Copy

# Pspice help: calculating autocorrelation of a time domain voltage

Last post Mon, Sep 10 2012 10:49 AM by cblas. 2 replies.
 Started by cblas 06 Sep 2012 08:35 AM. Topic has 2 replies and 840 views
• #### Thu, Sep 6 2012 8:35 AM

• cblas
• Joined on Thu, Sep 6 2012
• Posts 2
• Points 25
Pspice help: calculating autocorrelation of a time domain voltage
 Hi, I am new in this forum, and I am asking for your help about how to compute the autocorrelation of a time voltage using Pspice via a macromodelling model or Probe via macros. The autocorrelation R() of a signal v(t) is defined as:R(t)=(\int v(x) v(x+t) dx)/Twhere \int stands for the integral symbol which has to be evaluated on from 0 to T with T the final time of the simulation. I know that a possible solution is to use Matlab anda Pspice together but for the moment I am exploring a Pspice solution onlyBeste regards Carlos
• Post Points: 20
• #### Mon, Sep 10 2012 5:02 AM

• alokt
• Joined on Fri, Aug 22 2008
• Posts 241
• Points 3,470
Re: Pspice help: calculating autocorrelation of a time domain voltage
 You can use "S" function to perform integral in probe. You need to build the appropriate circuit to get V(x+t), one method is to use tline. if you have repeatable and known function v(t), you can directly generate a identical waveform with delay. Other alternative is to build a complete circuit, which takes V(t) & generated V(t+x), use multiplier to multiply these two and output of multiplier is fed to integrator.
• Post Points: 20
• #### Mon, Sep 10 2012 10:49 AM

• cblas
• Joined on Thu, Sep 6 2012
• Posts 2
• Points 25
Re: Pspice help: calculating autocorrelation of a time domain voltage
 Dear Alokt,Thank you very much for your answer. My signal is know and for instance can be plotted by Probe. I have tried the "H(s)" function to get the delay, and then perform multiplication for a know signal, finally get the result using a "AVR" from Probe. Thank you very muchCarlos
• Post Points: 5