Back to Forums
24 posts / 0 new
Last post
#1 Mar 18, 2020
NordCAD_MartinBusk
Offline
Last seen: 4 years 3 months ago
Joined: 2020-03-05 07:08

Limitations of measurements

Location

Nordcad Systems A/S
Vesterå Aalborg
Denmark
DK

Hello PSpice community,

I have been having trouble making a desired measurement parameter.

Let me try to explain briefly: I have a charging- and a discharging curve of the voltage across my resistor which is connected to a capacitor (thus making the charging curves later mentioned). I also have a DC voltage called "threshold". 

I want to measure the time (I'm doing a transient analysis) between the charging curve crossing the threshold voltage, until the discharging curve crosses the threshold voltage again.

I'm trying to use the "XatNthY" measurement for this.

I fill out the measurement like this: "XatNthY(V(R1:2),V(Threshold),2) - XatNthY(V(R1:2),V(Threshold),1)", which gives me the x-value for the second time the voltage across my resistor crosses the threshold voltage, minus the first time. This is what I'm interested in.

It should work, but it does not. It gives wrong result. When I replace "V(Threshold)" with the actual voltage value 2.6, I get the correct result. (I tested if V(Threshold) had the correct value by pressing it into measurement expressions. 2.600000 it said, so should be good)

The problem is that I want to change the value of V(Threshold) often, and I would prefer not to have to put in the hardcoded value into the measurement every time I do so. 

 

So my question is: Is there any way to make a variable, which can be put into the mentioned measurement, or is it strictly for hardcoded values? A collegue told me he once saw a guy in a PSpice course do something to implement a variable in measurements, but he does not remember how. So my initial thought is that it should be possible somehow, I just haven't managed to find it.

 

Thank you in advance for your replies and stay safe out there!

 

Sat, 2020-03-21 00:16
spice_up_your_c...
Offline
Last seen: 4 years 5 months ago
Joined: 2020-01-26 09:49

Hi,

I was in a similar situation sometime back when I was working on a filter design. My aim was to measure the stopband depth everytime based on its measurement expression where cut off frequency would be a variable in the expression. But, I couldn't find a way to make that possible. I had to check the value manually after running simulation each time.

If someone has a suggestion on this, please advise  

Thu, 2020-03-26 08:22 (Reply to #2)
NordCAD_MartinBusk
Offline
Last seen: 4 years 3 months ago
Joined: 2020-03-05 07:08

Hello,

It discourages me that you too have not been able to find a solution to this. 

I recently noticed that one can implement MatLab functions in PSpice measurements (if ones company has a MatLab license of course).

I think this might make it possible to use variables in measurements, but I cant confirm it.

Tue, 2020-03-31 04:26 (Reply to #3)
NordCAD_MartinBusk
Offline
Last seen: 4 years 3 months ago
Joined: 2020-03-05 07:08

Hi,

I'm glade to announce that a collegue of mine gave me some help on this matter. I'll post the measurement syntax below:

TimeAboveTrsh(1,2)=x3-x2
*
*#Desc#* Find the value of X corresponding to the difference between
*#Desc#* the second and first crossings of a threshold value.
*
*#Arg1#* Name of the Threshold trace, must be constant
*#Arg2#* Name of the trace to measure
*
{
      1| search forward max !1 ;
      2| search forward for level (y1) !2
         search forward /x2/ for level (y1) !3 ;
}

 

In argument (1) you put a constant value or another measurement expression

The way I use it is with a MAX(V(treshold)) in the first argument. This way you make the value constant, as MAX() returns a constant, but it varies if you change the value of V(treshold), thus removing the need to change the value in PSpice for each simulation.

In argument (2) you put your trace.

I tested it out and it works just like I want it to. I used a DC voltage supply as my treshold, and measured the time (in a transient analysis) in which the voltage from my pulse voltage supplier was higher then the DC threshold. 
This was precicely what I was looking for. I hope it can help someone else in here.

/Martin

Thu, 2022-12-15 08:18
rossderi
Offline
Last seen: 1 year 6 days ago
Joined: 2022-11-25 14:35

Hazırsanız malzemelere geçebiliriz. Anahtarlık Aparatı 7350 Bakır Kaplama. Evde anahtarlık yapımı için malzemeler; farklı renklerde keçe, iğne-iplik, pamuk, boncuk veya düğme, oluşturulacak şekil için kalıp. Amigurimi Tavşan Anahtarlık Yapımı. Amigurumi anahtarlık fiyatları oldukça pahalı…. Sitemize göz atarak bunun gibi bir çok model ve. 3D design Anahtar İle Anahtarlık (Ev Yapımı). Bu videomda sizlere makrome tüy yaprak,makrome anahtarlık hatta makrome tüy yapraklar ile yapabileceğiniz makrome duvar süsü yapımını . 3D design Anahtar İle Anahtarlık (Ev Yapımı) created by Galatasaray_Şampiyon with Tinkercad. Ayakkabı kalıbını çiziyoruz, kalıbını çıkarıyoruz ve iki taraflı olarak çizip kesiyoruz. Ev hanımları çocuklar okula gittikten ve ev işleri bittikten sonra boş kaldıkları zaman diliminde bu işi yapabilir. Bugün sizlere hem hediyelik hemde satış için yapabileceğiniz çok sevimli bir anahtarlık hazırladım. Tane başına alınacak olan tutar ise tahmini olarak 0. Daha farklı anahtarlık modelleri ni incelemek isterseniz el izi anahtarlık yapılış ı ilginizi çekebilir. Bu videomda size çok detaylı makrome anahtarlık yapımını anlattım. Eva ile Anahtarlık Yapımı. Amigurumi Bisküvi Anahtarlık Yapımı. - Öncelikle 60 cm uzunluğundaki 3 tane ip kesilerek kenara konmalıdır. Çeşitli hayvan ve bitki figürlerinden esinlenilerek hazırlanan anahtarlıklar, son. Eva ile Yıldız Anahtarlık Yapımı. Ponpon anahtarlık yapımı ile çok şirin bir anahtarlık yapabilirsiniz. Ve herkesin kendi ile bağdaştırdığı ya da çok sevdiği bir emojisi var. Bu videoda sizlere düğün, nişan, doğum gibi özel günlerde sevdiklerinize hediye edebileceğiniz makroma anahtarlıkları nasıl yapabileceğinizi anlattım. Amigurumi Süslü Arı Anahtarlık Yapımı. Anahtarlık yapımı ile ilgili bilgilerin bir çoğu videolarda mevcut. Merhaba arkadaşlar! Bugün tatilde yapacak bir uğraş arayanlar için güzel bir tavsiyem var. Malzemeler Anahtarlık kalıpları Şeffaf dosya Çeşitli süsler (pul, sim, şekilli pullar, vb. rating of from 28 votes More from Şengül Yilmaz Amigurumi Minik by Şengül Yilmaz. Bileklik,kolye,anahtarlık Yapımı Için,lila. Birlikte sevdiğimiz karakterlerin anahtarlığı yapabiliriz. ADIM: Tuvalet kağıt rulosunu, istediğimiz kalınlıkla halka halka kesiyoruz. Okulumuz Okul Öncesi Öğretmeni Ezgi KARAKOÇ'un eğiticiliğiyle kadın velilerimize makrome anahtarlık yapım atölyesi gerçekleştirildi. Makrome Anahtarlık Makrome Anahtarlık Makrome Anahtarlık Makrome Anahtarlık Makrome Anahtarlık Makrome Anahtarlık Makrome Anahtarlık Makrome Anahtarlık Makrome Anahtarlık Makrome Anahtarlık Makrome Anahtarlık Makrome Anahtarlık Makrome Anahtarlık Makrome Anahtarlık Makrome Anahtarlık Makrome Anahtarlık Makrome Anahtarlık Makrome Anahtarlık

Sat, 2023-02-25 07:08
yousuf
Offline
Last seen: 1 week 1 day ago
Joined: 2022-06-15 05:21

Excellently written article, doubts all bloggers offered the same content because you, the internet is a greater place. Please keep it up! sportzspark

Mon, 2023-02-27 04:22
yousuf
Offline
Last seen: 1 week 1 day ago
Joined: 2022-06-15 05:21

Replica Bags Wholesale I have found myself coming over to your blog site more often so much that my visits are just about every day now! [Reply] thetopplayers

Tue, 2023-02-28 02:41
toto1234
Offline
Last seen: 11 months 1 week ago
Joined: 2022-10-01 01:57

New ideas can be set in this blog post. Interesting information for everyone. Thank you for helping people get the information they need. Thank you for your valuable efforts. 토토사이트

Sun, 2023-03-26 03:37
sowaro4784@ezgi...
Offline
Last seen: 1 week 1 day ago
Joined: 2023-01-26 07:15

They have blogs that are so fun to read, I suggested my frined this site and he also liked it. 안전놀이터

Mon, 2023-04-03 01:33
sowaro4784@ezgi...
Offline
Last seen: 1 week 1 day ago
Joined: 2023-01-26 07:15

Beaver says I also have such interest, you can read my profile here: 인천도수치료

Fri, 2023-04-14 08:10
tamrichard258
Offline
Last seen: 5 months 3 weeks ago
Joined: 2022-12-21 07:40
Great Article it its really informative and innovative keep us posted with new updates. its was really valuable. thanks a lot.

<a href="https://notepin.co/dash">Taskade AI</a>
Fri, 2023-04-21 04:06
tamrichard258
Offline
Last seen: 5 months 3 weeks ago
Joined: 2022-12-21 07:40

Thanks for sharing the post.. parents are worlds best person in each lives of individual..they need or must succeed to sustain needs of the family.ts a great pleasure reading your post.Its full of information I am looking for and I love to post a comment that "The content of your post is awesome" Great work. I think that thanks for the valuabe information and insights you have so provided here.Thanks for sharing us.

<a href="https://www.chemsupplies.com.au/store/p7/CondysCrystals.html">condy's crystals</a>
Thu, 2023-05-18 10:39
tamrichard258
Offline
Last seen: 5 months 3 weeks ago
Joined: 2022-12-21 07:40

I think that thanks for the valuabe information and insights you have so provided here.<a href="https://notepin.co/dash">Cupones México</a>

Thu, 2023-05-18 11:58
tamrichard258
Offline
Last seen: 5 months 3 weeks ago
Joined: 2022-12-21 07:40

I think that thanks for the valuabe information and insights you have so provided here.<a href="https://sebsauvage.net/paste/?f5db0f648edf8bdb#RMIN1rID2AuuWhOBWkHw3WXbs...">Cupones Chile</a>
 

Sun, 2023-05-21 17:05
tamrichard258
Offline
Last seen: 5 months 3 weeks ago
Joined: 2022-12-21 07:40

Thanks for sharing the post.. parents are worlds best person in each lives of individual..they need or must succeed to sustain needs of the family.<a href="https://notepin.co/dash">Cupones España</a>
 

Tue, 2023-05-23 12:22
tamrichard258
Offline
Last seen: 5 months 3 weeks ago
Joined: 2022-12-21 07:40

Thanks you very much for sharing these links. Will definitely check this out..<a href="https://notepin.co/dash">empresa de contabilidade</a>

Thu, 2023-05-25 09:18
tamrichard258
Offline
Last seen: 5 months 3 weeks ago
Joined: 2022-12-21 07:40

Thanks for the blog post buddy! Keep them coming...<a href="https://notepin.co/dash">polyurea coating</a>
 

Wed, 2023-06-07 09:24
tamrichard258
Offline
Last seen: 5 months 3 weeks ago
Joined: 2022-12-21 07:40

The information you have posted is very useful. The sites you have referred was good. Thanks for sharing..<a href="https://pastelink.net/7oscopij">SERU77LOGIN</a>

Thu, 2023-06-15 10:30
tamrichard258
Offline
Last seen: 5 months 3 weeks ago
Joined: 2022-12-21 07:40

Its a great pleasure reading your post.Its full of information I am looking for and I love to post a comment that "The content of your post is awesome" Great work. <a href="https://ttblogs.com/new-post">locksmith in christchurch</a>

Mon, 2023-06-19 11:45
tamrichard258
Offline
Last seen: 5 months 3 weeks ago
Joined: 2022-12-21 07:40

Wonderful illustrated information. I thank you about that. No doubt it will be very useful for my future projects. Would like to see some other posts on the same subject! <a href="https://telegra.ph/Best-online-casino-uk-play-casino-games-online-06-19-2">สมัครพนันออนไลน์</a>
 

Thu, 2023-07-06 10:13
tamrichard258
Offline
Last seen: 5 months 3 weeks ago
Joined: 2022-12-21 07:40

Thanks for sharing us.<a href="https://notepin.co/dash">แทงบอล</a>

Fri, 2023-07-21 08:22
tamrichard258
Offline
Last seen: 5 months 3 weeks ago
Joined: 2022-12-21 07:40
Hey what a brilliant post I have come across and believe me I have been searching out for this similar kind of post for past a week and hardly came across this. Thank you very much and will look for more postings from you.

<a href="https://pastelink.net/e2r7yxl2">kora live</a>
Tue, 2024-04-02 01:48
Mushq
Offline
Last seen: 7 months 2 weeks ago
Joined: 2024-04-02 01:27

Shop the latest Pakistani bridal dresses online at Mushq Pk for stunning and elegant bridal dresses for barat and other wedding events. Discover the perfect bridal dress in Pakistan with our extensive collection.

Tue, 2024-04-02 03:13
Roheenaz
Offline
Last seen: 7 months 2 weeks ago
Joined: 2024-04-02 02:10

Shop the latest collection of pakistani chiffon dresses at Roheenaz. Explore our exquisite chiffon dress designs and find the perfect outfit for any occasion.

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