|
| |
SIMION SL CompilerThe SL Compiler allows you to write SIMION user programs in a high-level "SL" language (rather than low-level PRG code). SL programs are compiled directly into PRG code, which is then executed as usual by SIMION and can be mixed with existing PRG programs. For more complicated applications, SL code can also invoke remote C++ code via the SL Remote interface. Below is a sample of SL code. This may be compiled with the online compiler demo. adjustable electrode_voltage = 500 # voltage cycle magnitude adjustable switch_time = 2.0 # change time (microseconds) # electrode voltage control sub fast_adjust # start undulating at time switch_time if ion_time_of_flight < switch_time adj_elect01 = electrode_voltage ... * cos(1 + ion_time_of_flight/10) else adj_elect01 = 0 endif endsub Language/compiler features:
|
|