Electron microscopy
 
Different Output Results due to Ordering of Actions with "while statements"
- Practical Electron Microscopy and Database -
- An Online Book -
Microanalysis | EM Book                                                                                   http://www.globalsino.com/EM/        


=================================================================================

 

Table 1009. Different output results due to ordering of actions with "while statements".

Case A Case B

:= and = in DM and C++ 
◆ Script file: Link
◆ Script function: Name the opened images in order of "the front most, second front most and so on"
◆ i is initialized in Line 11; however, the i for the name of each image is determined by Line 16.
◆ Re-naming in order: "Image 0" is the most front image, "Image 1" is the second most front image, and so on... , for instance, the images will be re-named as "Image 0 ...", "Image 1" and "Image 2" if three images are opened in total
◆ FindNextImage() in Line 15 returns each image. If the last image is found, the returned image will be invalid and then the script execution ends.

 
◆  Script file: Link
◆ Re-naming all the opened images, starting with "Image 0
◆ Comparing with the script on the left, this script re-names all the opened images with the same i (i = 0), initialized in Line 13 within the while{} statement.

 

 

=================================================================================