Home page

# Main application window

- Program window
- Command selection window
- Command window
- Picture window
- Output window
- Vertical toolbar
- Horizontal toolbar
- Variable window
- Menu Cameras
- Calibration process

### Main application window is displayed when Eli application is executed

### Program window

Program window is area where is displayed eli program. Eli program consist from command lines. Each command line executes one command. Eli program is executed step by step from the first line to the last line ( There is one exception Jump command. Execution of this command jump program execution to any line in the program depends on jump condition) Each command do own operation. If you want to know what command do, click on the line with command in the program window and press F1. Help window with documentation on selected command will display. When no eli program is loaded program window is empty. Program window is empty also when you click on New program button on tool bar or menu.
Add new command:

- Select command in the Command selection window
- Click on button Add on vertical toolbar or on menu Edit ->Add command or press F9
- Command will be added to the program window on the first line if program window was empty or To the next line after the line where was cursor in the program window
- Command parameters will be display in the Command window.
- Edit command parameters in the command window and click on button
  Change on vertical toolbar or on menu Edit ->Change command or press F10
- Command parameter is changed
- If you do not click on the Change button command parameters will not change.
- Commands can be easy edited. Click on the line which you want to edit in the program window.
- Command parameters is displayed in the Command window.
- Edit command parameters and click on Change button
- If you want to delete some command click on the line which you want to delete and click on
  Delete button on vertical toolbar or on menu Edit->Delete command .
  After confirmation selected line will be delete
- If you want to copy some lines, click on the line after which you want to put copied line (or lines) and click on
  Copy button on vertical toolbar or on menu Edit->Copy commands or press CTRL+C
- Select start line of copied block on the next dialog window and end of block of the next dialog window (If you want to copy just one line start block and end block will have same line number) and selected block will be copied to the next line after the line where was cursor in the program window.

### Command selection window

Command selection window contain list all available commands. Commands are divided on the blocks according usage. At the start only block of commands are displayed on the command selection window. Click on the block display all commands on the block. Click on the command which you want to add and click on button Add on vertical toolbar or on menu Edit ->Add command or press F9

### Command window

Command window display all commands parameters. Description of commands parameters can be found by click F1 key when command is selected in the program window. After change parameters in command window must be click on button Change on vertical toolbar or on menu Edit ->Change command or press F10

### Picture window

Picture window can display result picture when it selects in command System_Result in the end of program. If Debug mode was activated and System_result commands was executed, picture window will show actual selected picture after each step or after stop on break.
Picture window also display picture from camera on Cameras menu.

### Output window

Output window displays eli program description after loading of new command. It displays result variables value if those variables was selected in System_result command. It display also variables value if those value was selected in the variable window (Menu Debug->Variable window or press F8 key. Thsi window display also break information in debug mode.

### Vertical toolbar

Vertical toolbar has same commands as in Edit menu

- Add button .(Key F9) Click on this button add selected command from command window to the program window line after cursor or on the first line if program window is empty
- Change button .(Key F10) Click on this button save changes done in the command window. Click on this button always if you done any changes in the command window.
- Delete button . Click on this button delete command on the line where is place cursor. Before delete command you need confirm delete in the confirmation dialog.
- Copy button (Key CTRL+C).Click on this command copy lines(or line) after line where is placed cursor on program window. At first you need to write start block command line number and at the second you need to write end block line number. If you want to copy just one line start block and end block number has same line number. Only line before cursor can be copied.
- Edit comments button displays window where eli program comments or description can be write. This comments will be display in the Output window when eli program is loaded.

### Horizontal toolbar

Horizontal toolbar represents commands from menu File, Run and Debug. It has also progress indicator if run loop mode was selected. There is status message in the last position which displays actual status of program.

- Open program .Same command as from menu File->Open program.
  Dialog for open eli program will display after click on this button. Select eli program which you want open and click on Open button will load this program to program window. This program can be run or debug.
- Save program .Same command as from menu File->Save program.
  Dialog for save eli program will display after click on this button. Write name of test program and click on button Save. Loaded eli program will save to file. All changes done in loaded program must be save to eli file with click on this button. When you open new program or close application always Save eli program to file with this button. If not all changes done in loaded program will be lost.
- New program .Same command as from menu File->New program.
  Click on new program button will erase program window and erase loaded eli program from application. Application is ready for create new program. Do not forget save program before click on New program button
- Run program . Same command as from menu Run->Run.
  Click on this button will run loaded eli program from start to End line.Run is done without stop on breaks. After finish of program result with program execution time will display in the Output window and Picture window if some picture was selected in command System_Result
- Set break (Key F3). Same command as from menu Debug->Set break.
  Click on this button set break in the line in program window where is set cursor. Red square is display on the line where is set break. It can be set more breaks to any lines. When is program in Debug mode, program is stop on the line where is activate break. Break line is not executed when program is stop on break.
- Remove break (Key F4).Same command as from menu Debug->Remove Break.
  Click on this button remove break from line where is put cursor in the program window. If break is not set on the line where is cursor, this command does not have affect.
- Remove All break .Same command as from menu Debug->RemoveAll break.
  Click on this button remove all sets breaks in the program window. If there are not breaks in the program window , this command does not have affect.
- Debug (Key F5).Same command as from menu Debug->Debug.
  Click on this button run loaded eli program in Debug mode. If program is running in Debug mode, program will stop on line where is activated break. Line with break is not executed and program is waiting for next commands Step, Continue or Stop debugger . Break status is reported on the Output window and on Status message on the last position on horizontal toolbar. If no break was set, program is run till end of line. It has same function as Run command
- Run One Step (Key F6). Same command as from menu Debug->Step.
  This command is activated only if program is on debug mode and it stop on break or if Step command was executed before. Click on this command executes one line where is active cursor on the program window. It command on the line has Edit window, This edit window is displays. After execution of Step command, program goes on the next line. If last line is executed program will finish.
- Continue (Key F7).Same command as from menu Debug->Continue.
  This command is activated only if program is on debug mode and it stop on break or Step command was executed before. Click on this command continue program steps till next line break detected or till the end of the program.
- Stop debugger. Same command as from menu Debug->Stop Debugger.
  This command is activated only if program is on debug mode and it stop on break or Step command was executed before. Click on this program stop program execution without continuing to next steps.
- Run loop. Same command as from menu Run->Run loop.
  Click on this command display dialog window where start loop line and repeat loop time can be selected:
  - Start line in next loop: It can be selected line for loop start. It first time program start from the first line, but in the next loops program start from this line. It can be useful in watch video file(or read camera). The first line can be read video (it will run just one time) and next line can be read video frame.Read video frame will be done on each loop.
  - Repeat loop time . This value set time between start of each loop. This time should be more than program execution time (It can be read on result window after Run program execution).
  When Run loop was started program will start from the first line to the last line, wait for repeat loop time and run program next time from start line in next loop, continue till the end of program,wait for repeat loop time and continue from start line and so on. Loop will be continue till:
  - Error is detected on some program line
  - User click on Stop loop button
- Stop loop.. Same command as from menu Run->Stop loop.
  This button is active only if run loop was activated. Click on this button will stop loop running

### Variable window

Variable window is call from menu Debug->Variable window or key F8. After activation dialog window displays where it can be selected which variable value will be read.It can be selected:

- System variable: It can be selected system variable (Variable 0 to Variable 99)
- Strings: It can be selected string variable (String 0 to String 9)
- Objects: It can be select all objects in the program. It can be select if you just want to read number of objects or some of the object parameters.If Object parameters is selected choice Object Parameters is active. It can be select all object parameters

After selection click on OK button and actual value of selected variable is display in the output window.

### Menu Cameras

Menu is using for checking or calibrating all connected cameras.

- Find camera. Click on this button find all connected cameras (This option works only on the Linux in current version). Result is display on the output window.
- View camera . Click on this menu display dialog for select camera. After selection click on OK button and picture from selected camera display in the Picture window. Camera picture displays in loop according setting from menu Properties. Camera picture will be display till menu Stop Camera will be selected.
- View camera undistort Click on this menu display dialog for select camera, after camera selection calibration file selection window will be displayed. It can be select camera calibration file, which will be use during undistort calculation. Undistorted image from camera will be display in the Picture window.Camera picture will be displayed till menu Stop Camera will be selected.
- Snapshot Key F2. This menu is active only if View camera or View camera undistort is activated. Click on this menu makes picture from actual camera view and store it to according selection in Properties menu.
- Stop camera . This menu is active only if View camera or View camera undistort is activated. Click on this menu stopped view from selected camera.
- Calibrate camera. Click on this menu display camera calibration window
  - Select camera . Camera which will be calibrate can be selected on this window
  - Calibration file . Click on button path and save file dialog will open. Select calibration file where calibration constant will be save
  - Reload frame [ms] . Select delay between reading camera frames. Picture from camera is display in Picture window in main application window
  - Calibration frame delay [ms] . Select delay between calibration picture. After program found all chessboard corners calibration data will save and wait for this time to start next calibration process. It is time where calibration chessboard picture can move for the next position
  - Square size Size of square edge on chessboard picture in real unit (millimeters or inch). Measure this dimension with caliber on printed picture and put this value to that window
  - Aspect ratio . Use 1.0
  - Number frames . Select how many calibration picture will be done. Use at least 10 for proper calibration constant
  - Start calibration . Click on this button start calibration process
- Camera properties . Select camera properties during viewing of some cameras:
  - Camera snapshot folder . Select folder where snapshot (Key F2) will be stored if user click on snapshot menu or key F2 during camera view.
  - File name . File name of saved camera image from camera. File name has format: file name _ index. Index is incremented after each snapshot
  - Start index . Select start index for snapshot file.
  - View camera loop time . Select time between getting frame from camera during camera viewing.
  - Update all. Click on this button save all selected parameters

### Calibration process

- Print calibration picture from menu share <->Eli<->Calibration
- Put printed picture on fix surface
- Measure square edge dimension be vernier
- Click Calibrate camera menu
- Select camera
- Select calibration file
- Write square size
- Write number of frame
- Click Start calibration
- Calibration process is automate
- If camera found all corners on chessboard picture calibration frame is stored and camera wait for next calibration frame
- Move calibration picture to the next position and if camera found all corner on chessboard process will continue till all calibrated frame will be found (It is number of frames which is set)
- Finish of calibration will be reported on the output window
- Selected calibration program will be used on the read undistort camera commands