The field and particle trajectory simulator
Industry standard charged particle optics software
Refine your design: model > simulate > view > analyze > program > optimize it.
News: SIMION v8.1.3.8-TEST posted - EA with new GEM features! | ASMS 2018 posters | Zoom Tutorial Video
About | Documentation | Community/Support | Downloads | Ordering

PA2Text Example

The SIMION SL™ Toolkit (version - 2004-11-09)

Description: This is a simple example of reading a PA file using the SL Libraries.

Category: SL Libraries

This example is implemented in three programming languages:

  • cpp - C++ implementation
  • perl - Perl implementation
  • python - Python implementation

CPP version

Use: To use, compile the pa2text.cpp program into pa2text.exe and run the pa2text.bat program, which passes the example to pa2text.exe. Build files are provided for Microsoft Visual C++ 6.0 and GNU g++ C++ compilers. If you use another compatible c++ compiler, you just have to make sure that you add the SL Libraries for C++ (lib\cpp) to your include seach path and make sure pa.cpp gets compiled into the binary).

Browse the source code:

Perl version

Use: To use, just run the field.bat program. This will execute the Perl interpreter and point it to the location of the SL Libraries for Perl (lib\perl).

Browse the source code:

Python version

Use: To use, set the "PATH" variable in field.bat to point to the directory in which python.exe is installed on your system. Then run field.bat.

Browse the source code:

Please report any errors/comments regarding this web page:
  Name/e-mail/phone (optional):
The SIMION SL Toolkit™ and documentation is (c) 2003-2004 Scientific Instrument Services, Inc. All Rights Reserved.
Any comments on this web page? (will be sent to SIS SIMION Support)
[Optional] Your name: email: phone/fax:
The SL Tookit™ and documentation is (c) 2003 Scientific Instrument Services, Inc. All Rights Reserved.