awvPrintWaveform
awvPrintWaveform(o_waveform1[o_waveform2... ] [?outputt_fileName|port] [?numSigDigitsx_numSigDigits] [?formats_format] [?numSpacesx_numSpaces] [?widthx_width] [?fromx_from] [?tox_to] [?stepx_stepValue] ) =>t/nil
Description
Prints text data of waveforms specified in a list of waveforms to the Results Display Window or to the specified file.
There is a limitation of awvPrintWaveform function for precision. It works up to 30 digits for the Solaris port and 18 digits for HP and AIX. If the data is too lengthy to be displayed in the print window, a pop-up form appears, indicating this and notifying you that the data will be sent to a default output file or to a filename you specify.
Arguments
Value Returned
Examples
The following example creates a Waveform window and returns the ID of the Waveform window.
awvCreatePlotWindow()
=> window:3
The following example opens simulation results stored in the specified results directory ampsim.raw.
openResults("/servers/user/design/ampsim.raw")
=> "/servers/user/design/ampsim.raw"
The following example returns ID of the waveform of the signal out, which is available in the tran-tran result of the results directory ampsim.raw.
w1=v("out" ?result "tran-tran")
=> srrWave:0x36368020
The following example returns ID of the waveform that is obtained after applying the flip function to the signal out, which is available in the tran-tran result of the results directory ampsim.raw.
w2=flip(v("out" ?result "tran-tran"))
=> srrWave:0x36368040
The following example passes waveform objects w1 and w2 into a list named waves.
waves=list(w1 w2)
=> (srrWave:0x36368020 srrWave:0x36368040)
The following example prints waveform data for w1 and w2 in the Results Display Window.
awvPrintWaveform(w1 w2 ?from 100ns ?to 200ns ?step 1ns ?numSpaces 4 ?width 50 ?format 'suffix ?numSigDigits 10)
=> t
The following example prints waveform data for w1 and w2 to myFile.txt file.
awvPrintWaveform(?from 100ns ?to 200ns ?step 1ns ?numSpaces 4 ?width 50 ?format 'suffix ?numSigDigits 10 ?output "myFile.txt" w1 w2)
=> t
Return to top