
how to acces a wave from an external operation or function

emeds
i am new to Igor and need some help :)
How can i access to an wave to get the information from it if i use it in a operation or function which i am programming?
thanks.
I recommend that you perhaps start by reading the examples for operations or functions already in Igor Pro. You might even try copying them to your procedure window, setting the debug mode on, setting a break=point in the procedure window, and watching what happens to the different parameters in the functions as the code steps through each line.
Otherwise, maybe I misunderstand and you have a more specific question that could be answered.
--
J. J. Weimer
Chemistry / Chemical & Materials Engineering, UAHuntsville
August 10, 2011 at 06:22 am - Permalink
I could do it in two ways right?
one of them is if i invoke my function with 2 different waves ? like CalcSomething(wave0,vawe1)
or i can access these two waves in my function in my code?
in the both case i dont know how to access to my waves..
August 10, 2011 at 06:42 am - Permalink
case 1: pass two waves to a function
Thats the common way to do it. You can also hardcode waves into your function as in case 2:
However that is NOT recommended, because the waves have to exist in the exact folder with the exact names as written in the function, which is usually not the case. I use this quick and dirty way sometimes for tests, but otherwise you should use case 1.
If you want to learn more, start reading the subchapter 'user defined functions' in the chapter 'programming' in the manual.
August 10, 2011 at 08:27 am - Permalink
August 10, 2011 at 08:31 am - Permalink
--
J. J. Weimer
Chemistry / Chemical & Materials Engineering, UAHuntsville
August 10, 2011 at 08:32 am - Permalink
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
April 27, 2012 at 08:55 am - Permalink