deleting
saeed
I am newbie in Igor!
I execut my procedure but I do not know how can I delete some part of my program which I already executed?
For example I write program for appearing the buttons and after excute them , I decide to delete some of them but I can not!!!
Thanks foe helping
Do you want to remove a button etc. from a control panel? There is the
KillControl
command which might do what you want to achieve.January 29, 2014 at 06:06 am - Permalink
I have another problem with my code that attached, I send my image from Labview and Igor plot my images in seperate Graph but I like Igor substitute every new image and at least I have one Graph instead of a lots of graph.
Best Regards
February 4, 2014 at 08:03 am - Permalink
--
J. J. Weimer
Chemistry / Chemical & Materials Engineering, UAHuntsville
February 4, 2014 at 08:19 am - Permalink
why does not it work?
February 4, 2014 at 03:19 pm - Permalink
Wave myWave
DoWindow/K myWindow
Display/N=myWindow myWave
etc
End
--Jim Prouty
Software Engineer, WaveMetrics, Inc.
February 4, 2014 at 07:23 pm - Permalink
I need your help
February 6, 2014 at 03:55 pm - Permalink
Function AjustaImagen()
//Upload Image of Trap
GBLoadWave/O/N=wave/T={16,80}/W=1 "D:DATA:temporalIgor.txt"
Redimension/N=(640,480) wave0 //resize Image
Duplicate wave0 Trampa1 //Duplicate the original image
Display;AppendImage wave0
ModifyImage wave0 ctab= {*,*,Rainbow,0}
killwindow wave0
End
what is my mistake?
February 7, 2014 at 08:58 am - Permalink
//Upload Image of Trap
GBLoadWave/O/N=wave/T={16,80}/W=1 "D:DATA:temporalIgor.txt"
Redimension/N=(640,480) wave0 //resize Image
Duplicate wave0 Trampa1 //Duplicate the original image
Display /N=MyGraph
String sWinName = S_Name //save window name in string in case you do something later to change it
AppendImage wave0
ModifyImage wave0 ctab= {*,*,Rainbow,0}
killwindow $sWinName
End
The graph name is not the same as the name of the wave displayed in it.
February 7, 2014 at 12:45 pm - Permalink
My gole is the cod can be replace the new image, so in final I have only one image.
February 7, 2014 at 03:17 pm - Permalink
I think killing the graph(s) is the wrong thing for you to be doing.
You should create a graph for the first image, and then for the next images, use:
to update the image.
Or just copy the new image data over the old image data, leaving the graph alone.
--Jim Prouty
Software Engineer, WaveMetrics, Inc.
February 8, 2014 at 10:55 am - Permalink
Allright, that was an oversight on my part. Try this if you want to continue on this road. Otherwise give John's suggest a go.
//check for prior existance of MyGraph graph; if it exists then kill it.
DoWindow MyGraph //V_flag is set to 1 if window exists; 0 otherwise
if(V_flag == 1)
KillWindow MyGraph //kill the window
endif
//Upload Image of Trap
GBLoadWave/O/N=wave/T={16,80}/W=1 "D:DATA:temporalIgor.txt"
Redimension/N=(640,480) wave0 //resize Image
Duplicate wave0 Trampa1 //Duplicate the original image
Display /N=MyGraph //new plot window will have name "MyGraph"
AppendImage wave0
ModifyImage wave0 ctab= {*,*,Rainbow,0}
End
February 10, 2014 at 07:27 am - Permalink
It works very well
February 10, 2014 at 09:22 am - Permalink