How to use the rename code to fix my problem?
llzy36
I have a loop procedure (Function loop_test()) to do the function of “perform_auto_analysis()”. When I run loop_test() in the command, there will appear a dialog box asking the pathway (see the attached picture). Then I input the numbers (such as 9 and 9), the procedure will get the results. But when the procedure dose the second loop run, there still appear the dialog box asking the pathway. Thus, my question is how to use the rename code to fix this. Where should I put. Thank you very much.
Function loop_test()
variable BC_n=27, Scat_n=700, lim_BC=28.1, lim_Scat=801
variable/g BC_MASS_CAL
variable/g Scat_cal
do
Scat_n = 700
BC_MASS_CAL = BC_n
do
Scat_cal = Scat_n
perform_auto_analysis()
Scat_n += 25
while (Scat_n < lim_scat)
BC_n += 0.5
while (BC_n < lim_BC)
end
On another note, you need to use tags so that your Igor code will be properly formatted on IgorExchange. See http://www.igorexchange.com/node/3221 for details.
October 11, 2015 at 06:31 am - Permalink