|
| |
Quad exampleDescription: This is an SL program to perform quadrupole control. It can be used as a drop-in replacement for the PRG code in SIMION's _Quad example. Category: SL Compiler, SL Remote This example is implemented in two versions:
SL versionUse: To use, copy the quad.sl, quadin.sl, quadout.sl, and quadvars.sl files into SIMION's _Tune subdirectory. Then compile each of the SL files with the SL Compiler to regenerate the PRG code. (This will overwrite the original PRG code, so you may wish to backup up the originals first.) Then run the _Quad example in SIMION as normal. Browse the source code:
CPP versionUse: To use, first compile the quad.cpp program to generate quad.exe. Copy quad.sl into SIMION's _Quad subdirectory and compile this file with the SL Compiler to regenerate quad.prg (you way wish to make a backup of the original). Now, load the _Quad example in SIMION, run the quad.exe program (this will remain running in the background), and then fly ions in SIMION. The compiled PRG program will remotely call the running quad.exe at various stages in the PRG code's execution. Browse the source code: |
|