-
Notifications
You must be signed in to change notification settings - Fork 1
The Scripting Console
Scripting > The Scripting Console
Genie python can be used inside the IBEX client by using the scripting console. To start this press the scripting button in the sidebar:
This console will let you type genie commands. Pressing "Page Up" will display a window containing the command history. Previous commands can be selected from the list or searched for using the text box at the bottom.
Additionally, pressing Up/Down arrow keys lets you cycle through previous commands. You can also filter those commands by typing in the start of a line first.
The toolbar in the top right provides additional functionality.
From left to right these buttons do the following:
- Stop the whole console. This will stop the current script and remove the console from view, useful if you are running multiple consoles.
- Save the text that's in the console to file.
- Stop the currently running script. This is useful if you realise that the script is doing something wrong. (This can also be done by pressing Ctrl+C)
- Clear the console. This will remove all the text from the window, be careful though as this WON'T stop the current script.
- Pin the console. This is not used.
- Switch to a different console. This will be greyed out if you only have one console running.
- Start a new console or a new view. You can use this to start a new console by selecting PyDev Console -> Python Console -> Ok. Be careful! Having multiple consoles running can lead to different consoles 'fighting' for control of the instrument.
As of September 2019, there is a limit on the amount of output that can be kept in the console. This limit is enforced to prevent a long output log from claiming too much memory and slowing down the rest of the control system.
The console output can also be manually saved & cleared by using the right-click console context menu.
You can search console text by right-clicking on the console, clicking "Find/Replace...", typing your search query in the "Find:" text field and pressing the "Find" button.