The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Apr 18th, 2024, 4:04am
Pages: 1
Send Topic Print
Creation of Smith Chart by OCEAN in Cadence ViVA (Read 153 times)
cheap_salary
Senior Member
****
Offline



Posts: 162

Creation of Smith Chart by OCEAN in Cadence ViVA
Dec 12th, 2016, 4:53am
 
I can easily create Smith Chart by OCEAN for Cadence Wavescan and Cadence AWD.

However I can not create Smith Chart by OCEAN for Cadence ViVA.

The followings are both uneffective in Cadence ViVA.
Code:
displayMode("smith")
awvSetSmithModeType( window(2) "impedance" ?subwindow 3 ) 


How to create Smith Chart by OCEAN in Cadence ViVA ?
Back to top
 
 
View Profile   IP Logged
cheap_salary
Senior Member
****
Offline



Posts: 162

Re: Creation of Smith Chart by OCEAN in Cadence ViVA
Reply #1 - Dec 13th, 2016, 4:57am
 
Self-follow-up.

I can create Imedance Chart by using following code in Cadence ViVA.
Code:
wid = newWindow()
displayMode("smith")
awvSetSmithModeType(wid, "impedance", ?subwindow 1) 


If you prefer admittance chart, use following.
Code:
wid = newWindow()
displayMode("smith")
awvSetSmithModeType(wid, "admittance", ?subwindow 1) 


We have to use both displayMode() and awvSetSmithModeType() in this order for Cadence ViVA.
This procedure is different from Cadence Wavescan and Cadence AWD.
Back to top
 
 
View Profile   IP Logged
Andrew Beckett
Senior Fellow
******
Offline

Life, don't talk to
me about Life...

Posts: 1742
Bracknell, UK
Re: Creation of Smith Chart by OCEAN in Cadence ViVA
Reply #2 - Dec 29th, 2016, 6:14am
 
You also can use the public (but not properly documented, for some reason) smithType("impedance") function which is more OCEAN-like.

I've requested that it is properly documented.

Note that the procedure is slightly different with the Qt-based ViVA in IC615 onwards because the new implementation doesn't support a window being able to morph from a rectangular to a circular window type - you have to create the window the way you want it up front, rather than changing it later.

Regards,

Andrew.
Back to top
 
 
View Profile WWW   IP Logged
cheap_salary
Senior Member
****
Offline



Posts: 162

Re: Creation of Smith Chart by OCEAN in Cadence ViVA
Reply #3 - Jan 11th, 2017, 4:39am
 
Andrew Beckett wrote on Dec 29th, 2016, 6:14am:
You also can use the public (but not properly documented, for some reason) smithType("impedance") function which is more OCEAN-like.
This can work as sams as "awvSetSmithModeType(wid, "impedance", ?subwindow 1)".

Andrew Beckett wrote on Dec 29th, 2016, 6:14am:
Note that the procedure is slightly different with the Qt-based ViVA in IC615 onwards because the new implementation doesn't support a window being able to morph from a rectangular to a circular window type - you have to create the window the way you want it up front, rather than changing it later.
There is no cool method to create new smith chart by Skill Codes.

So I have to invoke either code of the followings.

Code:
wid = newWindow()
displayMode("smith")
awvSetSmithModeType(wid, "impedance", ?subwindow 1) 


Code:
wid = newWindow()
displayMode("smith")
smithType("impedance") 


Back to top
 
 
View Profile   IP Logged
Andrew Beckett
Senior Fellow
******
Offline

Life, don't talk to
me about Life...

Posts: 1742
Bracknell, UK
Re: Creation of Smith Chart by OCEAN in Cadence ViVA
Reply #4 - Jan 11th, 2017, 6:55am
 
You could just do this:

Code:
procedure(MySmithChart(@optional (type "impedance"))
  prog1( ; this returns the return value of the first argument
    newWindow()
    displayMode("smith")
    smithType(type)
  )
) 



Then you can do:

wid1=MySmithChart()
wid2=MySmithChart("admittance")

The benefit of a programming language is that you can write functions to make things simpler (and cooler, to use your phrase).

Regards,

Andrew.
Back to top
 
 
View Profile WWW   IP Logged
cheap_salary
Senior Member
****
Offline



Posts: 162

Re: Creation of Smith Chart by OCEAN in Cadence ViVA
Reply #5 - Jan 11th, 2017, 7:46am
 
Actually my code is a part of large procedure.

Anyway skill functions are incomplete for Smith Chart.
For example, I can not place marker on Smith Chart by Skill.
Back to top
 
 
View Profile   IP Logged
Andrew Beckett
Senior Fellow
******
Offline

Life, don't talk to
me about Life...

Posts: 1742
Bracknell, UK
Re: Creation of Smith Chart by OCEAN in Cadence ViVA
Reply #6 - Jan 11th, 2017, 8:03am
 
You should contact http://support.cadence.com and request that as an enhancement.

Regards,

Andrew.
Back to top
 
 
View Profile WWW   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.