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!
Copyright © 2024 Cadence Design Systems, Inc. All rights reserved.
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
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.
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
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
Excellently written article, doubts all bloggers offered the same content because you, the internet is a greater place. Please keep it up! sportzspark
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
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. 토토사이트
They have blogs that are so fun to read, I suggested my frined this site and he also liked it. 안전놀이터
Beaver says I also have such interest, you can read my profile here: 인천도수치료
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.
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>
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>
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>
Thanks you very much for sharing these links. Will definitely check this out..<a href="https://notepin.co/dash">empresa de contabilidade</a>
Thanks for the blog post buddy! Keep them coming...<a href="https://notepin.co/dash">polyurea coating</a>
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>
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>
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>
Thanks for sharing us.<a href="https://notepin.co/dash">แทงบอล</a>
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.
Shop the latest collection of pakistani chiffon dresses at Roheenaz. Explore our exquisite chiffon dress designs and find the perfect outfit for any occasion.