Make Error: "name already exists as a wave"

Hi,

While executing my code, I get the following error:

Make Error: "name already exists as a wave"

I have the debugger open and can see where the code runs the error. However, the name of the wave where this error runs is unique. What other reason might this error occur? I looked through the manual and could not find anything on this (I might've missed it)

The line where this error occurs is:

Make/D/N=9000 or_datetime_w

Thanks for the help!
Use Make/O if you're sure it is unique :-)

But Igor disagrees with you;

Try this code, instead:

WAVE/Z shouldNotExist = 9000 or_datetime_w
if( WaveExists(shouldNotExist) )
    Print "I was wrong!"
endif

Make/O/D/N=9000 or_datetime_w


--Jim Prouty
Software Engineer, WaveMetrics, Inc.