The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 17th, 2024, 11:23am
Pages: 1
Send Topic Print
gm/id ocean script (Read 697 times)
grosser
Community Member
***
Offline



Posts: 57

gm/id ocean script
Dec 02nd, 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
Back to top
 
 
View Profile   IP Logged
grosser
Community Member
***
Offline



Posts: 57

Re: gm/id ocean script
Reply #1 - Dec 3rd, 2012, 2:37pm
 
please forget the question. already solved.
Back to top
 
 
View Profile   IP Logged
Ken Kundert
Global Moderator
*****
Offline



Posts: 2386
Silicon Valley
Re: gm/id ocean script
Reply #2 - Dec 4th, 2012, 1:41am
 
Please describe the solution.

-Ken
Back to top
 
 
View Profile WWW   IP Logged
grosser
Community Member
***
Offline



Posts: 57

Re: gm/id ocean script
Reply #3 - 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


Back to top
 
 
View Profile   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.