The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl Simulators >> Circuit Simulators >> gm/id ocean script https://designers-guide.org/forum/YaBB.pl?num=1354480374 Message started by grosser on Dec 2nd, 2012, 12:32pm |
Title: gm/id ocean script Post by grosser on Dec 2nd, 2012, 12:32pm Hola! I would like to get some help with OCEAN scripts I plot ID/(W/L) vs (gm/ID) and want to run simulation for every gm/ID from 1 to max with step=1 I need to save Y value (ID/(W/L)) for every step. I thought it'll work but doesn't graph1=ocnYvsYplot(?wavex gm_id ?wavey id_over_W\L ?titleList '("simpleWave") ?colorList '(3)) ocnSetAttrib(?XScale 'linear ?YScale 'log ?stripNumber 2 ?yNumber 1) idn=value(graph1 20) when I check the value of idn it has 0.0 for every X value which is untrue of course. when i type idn~>? i got *Error* get/getq: first arg must be either symbol, list, defstruct or user type - 0.0 The question is how to return Y value of such a waveform ? saludos |
Title: Re: gm/id ocean script Post by grosser on Dec 3rd, 2012, 2:37pm please forget the question. already solved. |
Title: Re: gm/id ocean script Post by Ken Kundert on Dec 4th, 2012, 1:41am Please describe the solution. -Ken |
Title: Re: gm/id ocean script Post by grosser on Dec 10th, 2012, 11:00am I did two X flips: graph1=car(ocnYvsYplot(?wavex gm_id ?wavey id_over_W\L ?titleList '("simpleWave") ?colorList '(3))) ocnSetAttrib(?XScale 'linear ?YScale 'log ?stripNumber 2 ?yNumber 1) new=flip(graph1) new1=flip(new) and then for(gm 1 gm_max idn_arr[gm]=value(new1 gm) ) Now it works. Don't ask me why, because I don't know. Maybe Andrew does and will explain that. regards |
The Designer's Guide Community Forum » Powered by YaBB 2.2.2! YaBB © 2000-2008. All Rights Reserved. |