GraphWaveDraw and Igor 7


We have this piece of code in our procedures that take the freehand drawing for further processing somewhere else (the waves will be overwritten directly in the :viewer: folder ). The code worked fine on Igor 6 , on Igor 7 I get the the error : "While executing ImageLineProfile, the following error occurred: One or more of the input waves are not supported". I tried to add Redimension/D to see if it's a wave type that is the problem but it didn't work.


Function PVBDrawImNewLineProfileProc(ctrlName) : ButtonControl
string ctrlname
	String cdf=GetDataFolder(1)
	PVBImNewLineProfileProc(ctrlName) 
	setdatafolder root:WinGlobals:viewer
	
	SVAR imageGraphName= root:Packages:PVBImProcess:LineProfile:imageGraphName
	Wave FHLineProfileY= root:WinGlobals:$(imageGraphName):FHLineProfileY
	Wave FHLineProfileX= root:WinGlobals:$(imageGraphName):FHLineProfileX
	
	

	Graphwavedraw/F/O  FHlineprofileY, FHlineprofileX
	SetDataFolder cdf
	PVBSetFHDependency()
end