save graph as tiff in procedure
finn
Function savepic()
SavePICT /E=-7 /B=288 /P=C:Users:Admins:Desktop:test:Graph1.tif
//SavePICT /E=-7 /B=288 "C:Users:Admins:Desktop:test" as Graph1.tif
//SavePICT /E=-7 /B=288 C:Users:Admins:Desktop:test:Graph1.tif
//ImageLoad/T=tiff "C:Users:Admins:Desktop:test:test.tif"
End
Cheers,
Finn
Here is a bit of code I use to save images to a folder with today's date
String today = Secs2Date(DateTime,-2)
NewPath/C/O/Q/Z savefolder, "E:Analysis:" + today
String SaveFile = filename+".tif"
SavePict/E=-7/Res=576/P=savefolder/O/TRAN=1 as SaveFile
You can obviously change the "savefolder" or "filename" to whatever you would like.
October 20, 2011 at 08:02 am - Permalink
October 20, 2011 at 10:00 am - Permalink
The /P flag expects the name of a Path object made with NewPath or Misc->New Path.... Also, without having as "Graph1.tif" at the end, Igor would prompt you for the file name.
Igor doesn't know what to do with the string containing your path because it doesn't correspond to a parameter for SavePICT. You could use that string to make a NewPath. Also, the file name should be quoted.
The third version has combined problems from the first two.
I think it should work properly like this:
October 20, 2011 at 10:12 am - Permalink
October 21, 2011 at 04:55 am - Permalink