Product Documentation
Virtuoso Visualization and Analysis XL SKILL Reference
Product Version IC23.1, November 2023

awvSaveWindowImage

awvSaveWindowImage(
w_windowID
t_path
t_filePrefix
g_cardLayout
)
=> l_fileNames

Description

Saves the image of the specified Waveform window in a .png file.

Support for the awvSaveWindowImage function will be removed in a future release. To save the graph as an image, use saveGraphImage instead.

Arguments

w_windowID

Waveform window ID.

t_path

Path to the directory where the image of the window is to be saved.

t_filePrefix

Prefix you want to add to the default name of the file being saved.

You can specify an empty string for this argument if you do not want to add any prefix to the default file name.

g_cardLayout

Specifies whether the Waveform window is in card layout mode.

Valid values are:

  • t: The Waveform window is in card layout mode.
  • nil: The Waveform window is not in card layout mode.

Value Returned

l_fileNames

List containing the names of the files being saved.

Examples

The following example open the simulation results stored in the specified directory.

openResults("/servers/user/design/ampsim.raw")
=> "/servers/user/design/ampsim.raw"

The following example plots waveforms of signals net10 and out in a Waveform window.

plot(v("net10" ?result "tran-tran") v("out" ?result "tran-tran"))
=> t

The following example returns ID of the Waveform window.

awvGetCurrentWindow()
=> window:3

The following example saves the Waveform window as a image file named window:3.1.png. Note that no prefix is added to the default name of the image file.

awvSaveWindowImage(window(3) "/home/user" "" t)
=> ("/home/user/window:3.1.png")

The following example saves the Waveform window as a image file named TransientAnalysis:window:3.1.png. Note that the specified prefix TransientAnalysis: is added to the default name of the image file.

awvSaveWindowImage(Window(3) "/home/user" "TransientAnalysis:" t)
=> ("/home/user/TransientAnalysis:window:3.1.png")

Return to top
 ⠀
X