The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
May 2nd, 2024, 10:25am
Pages: 1
Send Topic Print
[q] in ocean script (Read 1292 times)
kidhyun
Junior Member
**
Offline



Posts: 14

[q] in ocean script
Feb 12th, 2009, 12:00am
 
Dear all,

     I am using ocean script in spectre simulation.

     I copied some OP point parameters in array. (I used foreach to run several op analysis)

     Is there any way that I can plot this array?
     (since this array is not waveform, i wasn't able to use plot command)
     I also hope if there is a way of using array for x-axis variable.

Thank You
Back to top
 
 
View Profile   IP Logged
pancho_hideboo
Senior Fellow
******
Offline



Posts: 1424
Real Homeless
Re: [q] in ocean script
Reply #1 - Feb 12th, 2009, 4:39am
 
http://www.eecs.tufts.edu/~ryun01/gmid_ruida.pdf
http://www.designers-guide.org/Forum/YaBB.pl?num=1228854029/1#1

You can change array to list. And you can change list to vector.
Also you can use vector directly without using list.

   ;Get Memory for Work Area
   declare( a[n] );
   declare( b[n] );

   for(i, 0, n-1
      drSetElem(a_vec, i, a[i]);
   )
Back to top
 
« Last Edit: Feb 12th, 2009, 5:47am by pancho_hideboo »  
View Profile WWW Top+Secret Top+Secret   IP Logged
Andrew Beckett
Senior Fellow
******
Offline

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

Posts: 1742
Bracknell, UK
Re: [q] in ocean script
Reply #2 - Feb 12th, 2009, 1:17pm
 
If it's a list, there's also the awvPlotList() function which can be passed a list of x-values and a list of y-values (if my memory is correct, it's a list of lists of y-values) without needing to construct waveform objects first.

Regards,

Andrew.
Back to top
 
 
View Profile WWW   IP Logged
kidhyun
Junior Member
**
Offline



Posts: 14

Re: [q] in ocean script
Reply #3 - Feb 12th, 2009, 4:34pm
 
Thank you for the answer.

 
Back to top
 
 
View Profile   IP Logged
avlsi
Community Member
***
Offline



Posts: 91
singapore
Re: [q] in ocean script
Reply #4 - Feb 13th, 2009, 12:52am
 
Hi,

After using getAsciiWave function, i am getting a drwave:47823452.
What is the procedure to obtain waveform?

Thanks.
Back to top
 
 

Winners never Quit,Quitters never Win
View Profile   IP Logged
Andrew Beckett
Senior Fellow
******
Offline

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

Posts: 1742
Bracknell, UK
Re: [q] in ocean script
Reply #5 - Feb 13th, 2009, 2:15am
 
That is a waveform. I presume you want to plot the waveform? If so, do:

Code:
plot(getAsciiWave(...)) 


or assign to a variable first:

Code:
data=getAsciiWave(...)
plot(data ?expr '("my data")) 


Regards,

Andrew.
Back to top
 
 
View Profile WWW   IP Logged
avlsi
Community Member
***
Offline



Posts: 91
singapore
Re: [q] in ocean script
Reply #6 - Feb 15th, 2009, 5:52pm
 
Thanks Andrew. I could plot the waveform using ur advice.
Back to top
 
 

Winners never Quit,Quitters never Win
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.