Difference between revisions of "HANtune/Scripting"
Line 6: | Line 6: | ||
====Add a script to a project==== | ====Add a script to a project==== | ||
− | [[File:Add_Script.png | + | [[File:Add_Script.png|Adding a script]] |
Line 13: | Line 13: | ||
[[File:Start_Script.png|200px|thumb|right|Starting a script]] | [[File:Start_Script.png|200px|thumb|right|Starting a script]] | ||
− | [[File:Script_Running.png | + | [[File:Script_Running.png|Script running]] |
====Stopping a script==== | ====Stopping a script==== | ||
Line 21: | Line 21: | ||
==Console and Interactive Interpreter== | ==Console and Interactive Interpreter== | ||
− | [[File:Console.png | + | [[File:Console.png|HANtune Console]] |
==Signals and Parameters== | ==Signals and Parameters== | ||
Line 27: | Line 27: | ||
====Scripted Signals==== | ====Scripted Signals==== | ||
− | [[File:Scripted_Elements.png | + | [[File:Scripted_Elements.png|Scripted Elements]] |
Creating a new signal: | Creating a new signal: |
Revision as of 15:31, 6 January 2018
HANtune offers the ability to run your own scripts by integrating a Jython interpreter. Jython is a Java implementation of a Python interpreter, which means that it runs inside the Java Virtual Machine (JVM). This makes it very easy to interface with HANtune and allows us to automate its functionality.
Contents
Scripts
Add a script to a project
Starting a script
To start a script right click on it in the 'Project Data tab' and click 'Start'
Stopping a script
Startup scripts
Console and Interactive Interpreter
Signals and Parameters
Scripted Signals
Creating a new signal:
mySignal = createSignal('MySignal')
Setting its attributes:
mySignal.minimum = 0 mySignal.maximm = 255