newWindow() nand_out_p_norm = nand_out_p/vdda window_size = 0.20n center_time_1 = 0.50n center_time_2 = 2.250n sprintf(nand_out_p_1_label "nand_out_p about %.2f ns" center_time_1/1e-09) sprintf(nand_out_p_2_label "nand_out_p about %.2f ns" center_time_2/1e-09) nand_out_p_norm_clipped_1 = clip(nand_out_p_norm (center_time_1 - 0.50*window_size) (center_time_1 + 0.50*window_size)) nand_out_p_norm_clipped_2 = clip(nand_out_p_norm (center_time_2 - 0.50*window_size) (center_time_2 + 0.50*window_size)) sprintf( title_string2 "Example of Viewing Two Windowed Time Regions of a Waveform: %.2f ns to %.2f ns and %.2f ns to %0.2f ns" (center_time_1 - 0.50*window_size)/1e-09 (center_time_1 + 0.50*window_size)/1e-09 (center_time_2 - 0.50*window_size)/1e-09 (center_time_2 + 0.50*window_size)/1e-09) awvPlotWaveform(currentWindow() list(nand_out_p_norm_clipped_1 lshift(nand_out_p_norm_clipped_2 (center_time_2 - center_time_1 + window_size))) ?expr list(nand_out_p_1_label nand_out_p_2_label) ?color list("y2" "y1") ?stripNumber list(1 1) ?yaxisLabel list("V" "V") ) window = awvGetCurrentWindow() numMajDiv_x = 10 awvSetXAxisMajorDivisions(window numMajDiv_x) numMajDiv_y = 10 awvSetYAxisMajorDivisions(window 1 numMajDiv_y ?stripNumber 1) awvDisplaySubwindowTitle( awvGetCurrentWindow() title_string2 ) awvSetOptionValue( "dateStamp" nil )