PV-WAVE Foundation > VDA Tools > WzAnimate > Displaying a Variable in a WzAnimate Tool
Displaying a Variable in a WzAnimate Tool
 
Before you can display a byte array variable in a WzAnimate Tool, the variable must already exist on the $MAIN$ level of PV‑WAVE.
Use any of the following methods to display a byte array variable in a WzAnimate Tool:
*Open a WzAnimate Tool from the Navigator when one or more variables are on the variable selection list. The variable(s) on the variable selection list are automatically plotted when the WzAnimate Tool is opened (assuming the variable(s) are of an appropriate type and dimension). See Displaying a Variable in a VDA Tool Started from the Navigator for more information.
*Export a variable or selected data from another VDA Tool to a specified instance of the WzAnimate Tool. To do this, create a pixmap variable using the File=>Export As Pixmap function, then use the File=>Export Variable(s) function in the VDA Tool containing the variable.
*Supply a variable name as a parameter to the WzAnimate command.
For example:
WAVE> WzAnimate, head
where head is a variable on the $MAIN$ level of PV‑WAVE, created in the following manner.
WAVE> openr, 3, 'wave/data/headspin.dat'
WAVE> head = BYTARR(256, 256, 32)
WAVE> readu, 3, head
WAVE> close, 3