SIMION®
The field and particle trajectory simulator
Industry standard charged particle optics software
Refine your design: model > simulate > view > analyze > program > optimize it.
SIMION v8.1.3.0-TEST posted.
About | Documentation | Community/Support | Downloads | Ordering

How do I run Lua code in SIMION?ΒΆ

[SIMION 8.0/8.1]

If you have a single line of Lua code, just paste it into the bottom command bar in SIMION and press the Enter key. To display output from the code, either prepend an expression by “=” or wrap it in a print statement:

=1+2
print(1+2)

To run a file, click the “Run Lua Program” button on the SIMION main screen and select a .lua file. Alternately, you can use dofile from the command bar:

dofile 'myprogram.lua'
    dofile 'c:/temp/myprogram.lua'

To run code during a Fly’m, to customize the Fly’m, attach a workbench user program to your IOB workbench (see Chapter L “User Programming” in the SIMION 8.0 manual).

Any comments on this web page? (will be sent to SIS SIMION Support)
[Optional] Your name: email: phone/fax: