The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Simulators >> Circuit Simulators >> Creation of Smith Chart by OCEAN in Cadence ViVA
https://designers-guide.org/forum/YaBB.pl?num=1481547223

Message started by cheap_salary on Dec 12th, 2016, 4:53am

Title: Creation of Smith Chart by OCEAN in Cadence ViVA
Post by cheap_salary on 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 ?

Title: Re: Creation of Smith Chart by OCEAN in Cadence ViVA
Post by cheap_salary on 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.

Title: Re: Creation of Smith Chart by OCEAN in Cadence ViVA
Post by Andrew Beckett 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.

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.

Title: Re: Creation of Smith Chart by OCEAN in Cadence ViVA
Post by cheap_salary on 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")


Title: Re: Creation of Smith Chart by OCEAN in Cadence ViVA
Post by Andrew Beckett on 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.

Title: Re: Creation of Smith Chart by OCEAN in Cadence ViVA
Post by cheap_salary on 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.

Title: Re: Creation of Smith Chart by OCEAN in Cadence ViVA
Post by Andrew Beckett on Jan 11th, 2017, 8:03am

You should contact http://support.cadence.com and request that as an enhancement.

Regards,

Andrew.

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.