
// Script function: Wavelength of incident electrons at different accelerating voltages

// Unless named starting with GlobalSino, EM, My, Self, the function commands are defined 
//by Gatan DM, please see at link: http://www.globalsino.com/EM/page2597.html





number MyHighVoltage 


result ("GlobalSinoEM script: Select all, copy and paste them on Excel.\n") 

result ("\n") 
result ("HighVoltage (keV)" + "\t" + "" + "\t"+ "Wavelength (nm)" +"\t"+ "\n")
result ("\n") 


 FOR (MyHighVoltage=1; MyHighVoltage<=2000; MyHighVoltage++) 

{
result (0.5*MyHighVoltage + "\t" + "\kV" + "\t"+(1.23/(sqrt(500*MyHighVoltage+0.000001*500*MyHighVoltage*500*MyHighVoltage)))+"\t"+ "nm\n")

}







