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

Quad example

Description: 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 - pure SL implementation
  • cpp - SL implementation that calls C++ code via SL Remote

SL version

Use: 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 version

Use: 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:

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.