Skip to content

The Scripting Console

Thomas Lohnert edited this page Jun 17, 2021 · 11 revisions

Scripting > The Scripting Console

Using Genie Python in the IBEX Client

Genie python can be used inside the IBEX client by using the scripting console. To start this press the scripting button in the sidebar:

Toolbar

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.

Toolbar

From left to right these buttons do the following:

  1. Stop the whole console. This will stop the current script and remove the console from view, useful if you are running multiple consoles.
  2. Save the text that's in the console to file.
  3. 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)
  4. Clear the console. This will remove all the text from the window, be careful though as this WON'T stop the current script.
  5. Pin the console. This is not used.
  6. Switch to a different console. This will be greyed out if you only have one console running.
  7. 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.

Clone this wiki locally