The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines. Apr 24th, 2017, 8:10am
  HomeHelpSearchLoginRegisterPM to admin  
 
Pages: 1
Send Topic Print
Creation of Smith Chart by OCEAN in Cadence ViVA (Read 607 times)
cheap_salary
Community Member
***
Offline



Posts: 98

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
Community Member
***
Offline



Posts: 98

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: 1568
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
Community Member
***
Offline



Posts: 98

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: 1568
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
Community Member
***
Offline



Posts: 98

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: 1568
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
Trouble viewing this site? Copyright © 2002-2014 Designer's Guide Consulting. 'Designer's Guide' is a registered trademark of Designer's Guide LLC. All rights reserved.
Give back to the Designer's Guide Community by shopping at Amazon. Purchasing products through this link helps to fund our activities and does not increase your cost.

Our colleges are not as safe as they seem. Sexual assault is pervasive and the treatment of the victim by the adminstration is often as damaging as the assault: Campus Survivors, Campus Survivors Forum.