The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl Simulators >> Circuit Simulators >> [q] in ocean script https://designers-guide.org/forum/YaBB.pl?num=1234425638 Message started by kidhyun on Feb 12th, 2009, 12:00am |
Title: [q] in ocean script Post by kidhyun on 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 |
Title: Re: [q] in ocean script Post by pancho_hideboo on 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]); ) |
Title: Re: [q] in ocean script Post by Andrew Beckett on 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. |
Title: Re: [q] in ocean script Post by kidhyun on Feb 12th, 2009, 4:34pm Thank you for the answer. |
Title: Re: [q] in ocean script Post by avlsi on Feb 13th, 2009, 12:52am Hi, After using getAsciiWave function, i am getting a drwave:47823452. What is the procedure to obtain waveform? Thanks. |
Title: Re: [q] in ocean script Post by Andrew Beckett on Feb 13th, 2009, 2:15am That is a waveform. I presume you want to plot the waveform? If so, do: Code:
or assign to a variable first: Code:
Regards, Andrew. |
Title: Re: [q] in ocean script Post by avlsi on Feb 15th, 2009, 5:52pm Thanks Andrew. I could plot the waveform using ur advice. |
The Designer's Guide Community Forum » Powered by YaBB 2.2.2! YaBB © 2000-2008. All Rights Reserved. |