Difference between revisions of "HANtune/Scripting"
Line 1: | Line 1: | ||
{{HANtune}} | {{HANtune}} | ||
HANtune offers the ability to run your own scripts by integrating a Jython interpreter. [http://jython.org 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. | HANtune offers the ability to run your own scripts by integrating a Jython interpreter. [http://jython.org 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. | ||
− | |||
==Scripts== | ==Scripts== | ||
Line 14: | Line 13: | ||
====Scripted Signals==== | ====Scripted Signals==== | ||
Creating a new signal: | Creating a new signal: | ||
+ | |||
<code>mySignal = createSignal('MySignal')</code> | <code>mySignal = createSignal('MySignal')</code> | ||
+ | |||
Setting its attributes: | Setting its attributes: | ||
<nowiki>mySignal.minimum = 0 | <nowiki>mySignal.minimum = 0 |
Revision as of 11:43, 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
Running a script
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