NewFreeWave
NewFreeWave (type , npoints [, nameStr])
The NewFreeWave function creates a free 1D wave of the given type and number of points and then returns its wave reference.
Recommended for advanced programmers only.
Details
By default, NewFreeWave creates a free wave named '_free_'. You can specify another name via the optional nameStr input. The ability to specify the name of a free wave was added in Igor Pro 9.00 as a debugging aid - see Free Wave Names and Wave Tracking for details.
You can also create free waves using Make/FREE and Duplicate/FREE. These are preferable for creating multidimensional free waves and also fine for general use.
The type parameter can be either a code as documented for WaveType, or can be 0 to create a text wave, or 0x100 to create a data folder reference wave, or 0x200 to create a wave reference wave.
You can redimension free waves as desired but, for maximum efficiency, you should create the wave with the desired type and total number of points and then use the /E=1 flag with Redimension to simply reshape without moving data.
A free wave is automatically discarded when the last reference to it disappears.