Releases for Progress Window

progresswindow IGOR.6.20.x-2.x-dev

in
Downloaded 122 times
Nightly development snapshot from Subversion branch: IGOR-6-20--2
Download: progresswindow-IGOR.6.20.x-2.x-dev.zip
Size: 1.61 KB
md5_file hash: 67ecde4d5273ac6ce9cfc0bb17ea3698
First released: November 1, 2010 - 11:11
Last updated: November 1, 2010 - 12:00

Usage has been simplified. At the beginning of the body of a loop (for/while), add a Prog() command. The window will clean itself up when done. For example:

for(i=0;i<n1;i+=1)
  prog("Outer",i,n1)
  for(j=0;j<n2;j+=1)
    prog("Inner",j,n2)
  endfor
endfor

The messages "Outer" and "Inner" can be whatever you want. The other two arguments are the numerator and the denominator of the fractional progress for that part of the loop. The button created in the progress panel will, if pressed, abort the next type the Prog() command is encountered, enabling you to abort after a complete pass through a loop, rather than in the middle of a loop.

progresswindow IGOR.6.20.x-1.x-dev

in
Downloaded 64 times
Nightly development snapshot from Subversion branch: IGOR-6-20--1
Download: progresswindow-IGOR.6.20.x-1.x-dev.zip
Size: 2.2 KB
md5_file hash: ac63d70b5ffefe244cf3c3f196ebbf48
First released: July 1, 2010 - 08:43
Last updated: July 1, 2010 - 09:00

Example usage:

svar dataList,taskList // Pretend that these are some global variables listing your data files and a list of functions to perform on each data file.  
variable i
variable numData=itemsinlist(dataList)
variable numTasks=itemsinlist(taskList)
ProgWinOpen()
for(i=0;i<numData;i+=1)
   string data=stringfromlist(i,dataList)
   ProgWin(i/numData,0,status=data)
 	 for(j=0;j<numTasks;j+=1)
		string task=stringfromlist(i,taskList)
		ProgWin(j/numTasks,1,status=task)
		DoSomeTask(data,task) // Pretend that this is some function you have written that does something.  
// Alternatively, it can just be a block of code.  
	 endfor
endfor
ProgWinClose()

Back to top