Andrew Beckett wrote on Jan 2nd, 2009, 8:15am:I'm slightly confused by this question - the function addSubwindowTitle() adds a subwindow title in both AWD and Wavescan (I just checked)
No.
If you execute following, you can draw "AHO" and "BOKE".
But there is no skill function to draw "KASU".
Also I noticed that awvSetOptionValue('dateStamp t) doesn't work in Wavescan.
Quote:ocnWaveformTool('wavescan)
Date = getCurrentTime();
base_dir = getWorkingDir();
awvSetOptionValue('dateStamp t);
awvSetOptionValue('displayGrids t);
awvSetOptionValue("cursorPrecision" 9);
awvSetOptionValue("displayAxesBy125" t);
pi = acos(-1.0);
j = complex(0.0, 1.0);
t_end = 4*pi/2;
time_list = linRg(0.0, t_end, t_end/100);
n_time = length(time_list);
time_vec = drCreateVec( 'double time_list );
z = drCreateVec('doublecomplex n_time);
wid = newWindow();
addTitle("AHO");
bid = currentSubwindow(1);
addSubwindowTitle( "BOKE" );
a1 = 1.0;
a3_list=list(0.05, 0.1, 0.2, 0.3);
foreach(a3, a3_list;
z = a1*exp(j*time_vec) + a3*exp(-j*7*time_vec);
x = real(z);
y = imag(z);
plot( drCreateWaveform(x, y), ?expr list(sprintf(nil, "a3=%g", a3)) );
)
awvSetXAxisLabel(wid, "Real[z]", ?subwindow bid);
awvSetYAxisLabel(wid, 1, "Imag[z]", ?subwindow bid);
xLimit( list(-2*a1, 2*a1) );
yLimit( list(-2*a1, 2*a1) );