I am currently using Igor to graph spectra obtained from an FTIR spectrometer, however the nature of the work (working with archaeological samples) means that loading and appending the spectra separately becomes quite time consuming and difficult. Basically what we are trying to do is observe the chemical composition of the archaeological samples, and so in some instances we can be loading/appending 10 spectra or more, plus the standards we are using to see the chemical composition.
We already have a macro written for loading the IR spectra, however I was wondering if there was any way to add to this or alter it, or if someone has already done it - so that when we load to IR spectra it automatically appends it to the graph?
Yes, you can alter the code of a macro you have, if that's what you're asking. You'd want to add a call to the AppendToGraph operation somewhere. Without seeing your code it's impossible to provide further guidance, however.
Yes, you can alter the code of a macro you have, if that's what you're asking. You'd want to add a call to the AppendToGraph operation somewhere. Without seeing your code it's impossible to provide further guidance, however.
I'll throw up some code when I'm back to work (I'm a university student working with a couple professors so I don't have access all the time) next week! I noticed the AppendToGraph operation, and attempted to fiddle around with the code by myself, but I've not really done programming since I was much younger and it has never exactly been my strong suit.
Thanks so much for now, will add the code when I can. :)
There's quite a lot of code there. Maybe better to post a fragment that illustrates your problem, and doesn't require us all to read that much code.
Also- I see in the comments at the top that Robin Humphrey-Baker wrote most of the code you posted. He's a genuine Igor power user, and probably would be a good source of advice on modifying his own code.
There's quite a lot of code there. Maybe better to post a fragment that illustrates your problem, and doesn't require us all to read that much code.
Also- I see in the comments at the top that Robin Humphrey-Baker wrote most of the code you posted. He's a genuine Igor power user, and probably would be a good source of advice on modifying his own code.
Thanks for your response! Really sorry about the amount of code there. My original problem was mostly that I wasn't sure what code to post because I didn't know what was relevant. I am ultra-newbie unfortunately - my only experience in this area is an introduction to Java course I took when I was 17. Thanks for the advice on the author of the code though, I will definitely try to look him up!
I think I've figured out a bit of what I was looking for with good 'ol trial and error though i'm sure I will have some problems popup along the way soon enough.
Thanks for your response! Really sorry about the amount of code there. My original problem was mostly that I wasn't sure what code to post because I didn't know what was relevant. I am ultra-newbie unfortunately - my only experience in this area is an introduction to Java course I took when I was 17. Thanks for the advice on the author of the code though, I will definitely try to look him up!
If you haven't already, I strongly recommend that you go through at least the first half of the Igor guided tour. You can access it from the Help->Getting Started menu item. Alternately, you can watch video tutorials that cover mostly the same material at http://www.wavemetrics.com/products/igorpro/videotutorials.htm
Doing the guided tour won't help you a lot with programming, but it should help you to become much more familiar with Igor. Once you know how to do things in Igor using menu items and dialogs and/or the Igor command line, diving into an Igor procedure should be easier to do in a productive way.
AppendToGraph
operation somewhere. Without seeing your code it's impossible to provide further guidance, however.December 2, 2010 at 08:23 am - Permalink
I'll throw up some code when I'm back to work (I'm a university student working with a couple professors so I don't have access all the time) next week! I noticed the
AppendToGraph
operation, and attempted to fiddle around with the code by myself, but I've not really done programming since I was much younger and it has never exactly been my strong suit.Thanks so much for now, will add the code when I can. :)
December 2, 2010 at 02:43 pm - Permalink
December 9, 2010 at 05:03 am - Permalink
Also- I see in the comments at the top that Robin Humphrey-Baker wrote most of the code you posted. He's a genuine Igor power user, and probably would be a good source of advice on modifying his own code.
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
December 9, 2010 at 01:38 pm - Permalink
Thanks for your response! Really sorry about the amount of code there. My original problem was mostly that I wasn't sure what code to post because I didn't know what was relevant. I am ultra-newbie unfortunately - my only experience in this area is an introduction to Java course I took when I was 17. Thanks for the advice on the author of the code though, I will definitely try to look him up!
I think I've figured out a bit of what I was looking for with good 'ol trial and error though i'm sure I will have some problems popup along the way soon enough.
Thanks again!
December 10, 2010 at 08:01 am - Permalink
If you haven't already, I strongly recommend that you go through at least the first half of the Igor guided tour. You can access it from the Help->Getting Started menu item. Alternately, you can watch video tutorials that cover mostly the same material at http://www.wavemetrics.com/products/igorpro/videotutorials.htm
Doing the guided tour won't help you a lot with programming, but it should help you to become much more familiar with Igor. Once you know how to do things in Igor using menu items and dialogs and/or the Igor command line, diving into an Igor procedure should be easier to do in a productive way.
December 10, 2010 at 08:22 am - Permalink