KaRa manual

Introduction

KaRa stands for Kayak Racing. Its purpose is to handle the complete administration and timing of kayak races. Although KaRa was originally developed for slalom and down-river racing - as of version 2.2.0 - it can be used for any type of race and it does not have to be kayaking, it can be used in any sport where timing is involved.
It was developed, aiming to:

The system consists of software and hardware. The software is freely available, and its use is explained in this text.
The hardware consists of a chrono which can be connected to detection devices like infra-red cells, a ski-start system, a manually operated button, ...

The reason for choosing an external, computer-independant chrono is obviously that this is the only option you have if the timing must be correct. The chrono of the computer can not be trusted to give times correctly up to a hundredth of a second.
The downside is off course that you need external hardware.

Content

Start KaRa

If KaRa is not yet installed on your computer, you should first read the installation guide: INSTALL.html.

To start KaRa you can:

  • type 'perl kara.pl' on the command line
  • click or double-click the file 'kara.pl' in some file manager, if your system is correctly configured for it

Whatever way you start, the KaRa programme will come up like shown here.

Note that depending on the operating system and the window manager the window and its border will look slightly different.
Also know that some items (e.g. the top menu buttons) may look different.

At startup the graphical interface (window) of KaRa will have an optimal geometry; taking in account the height of the screen and the estimated minimally required width needed by the programme (or the width of the screen). However if you want to resize it: feel free to do so.
But do not resize the window any more after you have started doing 'Timing', because then the drag&drop capabilities may lose track of their orientation!

Stop KaRa

To quit from the programme, go to menu item 'Race' -> 'Exit'.

The different parts of the screen

From top to bottom the KaRa interface has these parts:

Tutorial

The best way to discover how KaRa works is to run through an entire session ... so follow on.

Immediately after startup the only available menu choices are: 'Race' and 'Info'. You will not be able to activate the other menu buttons.

The very first time

The first time you use KaRa it will be necessary to specify a data directory. That is the directory (also known as a 'map') in which all race information will be kept. In that data directory a subdirectory will be made automagically for each race that is administered by the programme.

How to specify a data directory

Menu item 'Race' -> 'Select data directory'
You will be presented a window (shown next to this) in which you can select a directory. Normally it is a good idea to specify the 'races' directory which was made for that purpose, but you can choose any directory you want. In future you need never to change the data directory, but it is allowed.

You select the directory you want, by clicking on it, or by typing the name and clicking on the button 'Select' below. The look of this selection will vary slightly depending on your operating system and window manager.

Specifying a new race

When you use KaRa for the first time for a race you will have to specify that new race:
Menu item 'Race' -> 'New race'
Type in the name by which you want to call that race and press the button 'Set'. The name will be used to make a subdirectory for that race in the data directory and it will also be used in the file names for results, start list, ... .
You can choose whatever you want, but don't use blanks and it is wise to choose a name that is: clear about the race and not too long.

Opening an already existing race

If you are working on a race which was already handled by KaRa previously, then:
Menu item 'Race' -> 'Open race'

After a new race has been set, or after an existing race has been opened, two more menu choices become available:
'Specifications' and 'Participants'.

Specifications of a race

After specifying a race for the first time (menu item 'Race' -> 'New race') you must then specify the specifications of the race, for that: use menu item 'Specifications' and the race specifications window will appear as shown below

This allows you to organize all aspects of the race, it includes: layout of start list, clubs list, results, number of manches and much more.
Let's go over some aspects:

File with license information
You need to specify a 'File with license information' if you want the programme to use such a file.
A 'license information file' contains the specification of competitors, each with a unique identifier. For every competitor there must be:
  • a unique identifier and all or some of the following items:
  • first name,
  • family name,
  • club
  • category, typically based on: gender & age, default length limit is 6 characters

If it is specified KaRa can use it to search for the items. The advantages are that a competitor can be specified by only his identifier and that the information items such as name and club will always be registered identically.

File with unusable numbers
You only need to specify a 'File with unusable numbers' if you want the programme to omit certain numbers from the start list. That is usefull if you are using bibs and some of them are missing. However most of the time you will want the programme to use all numbers. If you want to specify a file, it must be a simple text file with one number per line.

Layout
Obviously the layout is not extremely important, but you may want to tune it te get nice results, For example with slalom races it is generally a good idea to set 'Print start & finish times in result' to 'No', because otherwise you will get too many figures and the output becomes messy.
You should probably set the time format depending on how long the racing time is. For slalom races and river racing sprints it will probably be neater to use seconds&hundreds, but for racing times of ten minutes or more the HH:MM:SS.hh format will probably be best.
Feel free to experiment with this layout, you decide.

How many manches
This is very important obviously, choose between 1 and 2.
The programme currently only handles 1 or 2, but more could be made available should that become necessary.

First number in race
Probably you will want to start at 1, but - e.g. because your bibs start at 100 - you can change that here.
Currently you can start from between 1 and 250, but that range could be made larger.

Start times and intervals
If you need start times this is where you specify them; in the 'Timing' part of the programme start times can be overruled by an automatic chrono system or they can be changed. You do not need to specify them.
However if you specify them, you will get a window, like shown here, for each manche. Just slide the rulers to the times you want.
Note that the specification window will not be updated immediately with your settings, but rest asured, the system records your settings internally.

Open start positions
This allows you to choose between either keeping open start positions in the start list when the race begins, or otherwise to have all competitors follow uniterrupted ('boucher les trous' as the French say).
Saying 'Yes' here means you adhere to the old fashioned way where start times remain what they are.
Saying 'No' allows you to do away with unused start times and shorten the race and make it more appealing to those watching the race.

Calculate result
In case of a single manche this is not important, because the final result will simply be the result of the only manche.
If more than one manche is run, you can decide whether the final result should be the sum of the manches or the best single result (method used in slalom races in the 20th century).

Penalty times
Obviously for races such as slaloms which have penalties you must set this to 'Yes'.

When you are ready with the settings, press the 'Set' button below.

Participants

You still need one very important specification for the race: the list of participants.
KaRa needs a text file which contains the names (plus license and club) of all participants in the order in which they should start.

Format of the participants file

The format of this file is easy, the programme will read it line-by-line, so a competitor or any other specification must be on a single line.

The format for a competitor line is:
First-Name, Family-Name, License, Club
You can use blanks and/or tabs to keep everything readable, no problem, but the separating commas are required! You can also leave parts open. These are examples of legal entries:
Jan,            Peeters,        1234/007,       KCCM
Jean-Claude,    Van Damme,      ,       ,
,               ,               5678,

It is also possible to specify an empty entry (which makes sense if empty positions in the start list must be available):

,,,

For team races and boats that have more than one paddler, this is the way to specify them (notice the character & which has to precede the second, third, ... participants):

First-Name-1,	Family-Name-1,	License-1,	Club-1
&First-Name-2,	Family-Name-2,	License-2,	Club-2
For example the specification of two slalom racing teams (of three members each) could look like this:
Pieter,		Delvaux,	,	KSKCL
&Koen,		Behets,		,	KSKCL
&Frank,		Schoeters,	,	KSKCL
Christophe,	Putzeys,	,	RMCS
&Vincent,	Jonet,		,	RMCS
&Wilfried,	Machiels,	,	RMCS
Obviously this can be used to specify C2's, K2's or K4's. The number of team members is not limited and one category could contain boats or teams with different numbers of members (e.g.: a race in which C1's and C2's would run together is possible if you would want that).

For races with series building up to a final it is also possible to specify the contestants in the follow-up races. E.g.: you can specify the participants in the semi-finals (and further the final) from the results of the quarter-finals. But also the results in an entire category can be used to make the next lineup.
Such lines look like this:

!,	serie or cat,	Serie-Name or Cat-Name,	Position
These lines must begin with an ! exclamation mark. You may add some text after that, it will be discarded (e.g. '!result').
The next item must be either serie or cat.
That is followed by the full name of the serie or category or at least enough of that name to be unique.
Example of how a final with six participants could look like:
!,	serie,	001 semi-final,	3
!,	serie,	002 semi-final,	2
!,	serie,	001 semi-final,	1
!,	serie,	002 semi-final,	1
!,	serie,	001 semi-final,	2
!,	serie,	002 semi-final,	3
These specifications will copy all of the data of the participants and are usefull for single-line entries as well as &-entries. So a four-seater boat is represented by just a single !-specification.

The participants file also contains a number of other items, which we call key words:
cat:
serie:
start:
finish:
title:
footer:
agecatspec:
'cat:' to specify a category, just type whatever you want.
'serie:' should be used for heats (generally within a category, but it can contain multiple categories); the important issue here is that all participants within a serie will have the same starting time.
'start:' and 'finish:' determine at what locations participants will begin and end their race, this information is used by KaRa to determine which entries will be timed in which way. Just choose a name of the place (keep it short), or specify numbers, like 1, 2 and 3 for the starts.
'title:' and 'footer:' allow specifying text that will be printed in the result file, at the top and/or bottom. Currently (as of version 2.3.8) this is only used in the text-version result file (not in the HTML file).
'agecatspec:' allow you to specify information about the categories of participants (which are typically by gender and age). Currently you can specify the name of a category and its value (which can be considered as a weight, or weighing factor); it is used to calculate the combined value of a boat. The value should be a natural value between 0 and 100.

Comment is anything which follows the character '#', it allows you to write whatever you want, it is there for you, since KaRa will simply discard these lines.

Here is part of the content of such a file:
# Specificaties voor de afdalingswedstrijd op de Lomme
finish: Rochefort
start: 1 oude dam

cat: miniemen jongens
,,,
Cyril,Gilain,,RCNML
Florent,	Gerard, 	7979/---,	LKCC
Igor,		Hamoir,		7695/068,	RCNML
,,,
Jerome,		Buccheri,	,		CRBK
Jappe,		Tooten,		1723/052,	KCCM	# zal begeleid worden

cat: miniemen meisjes
,,,
,,,

start: 2 Jemelle

cat: kadetten jongens
,,,
,,,
Nicolas,	Browet, 	7857/---,	SKC
,,,
Maxime,		Richard,	7643/075,	RCNML
#Steve,		Hoebeke,	7790/055,	RMCS
Vincent,	De Smet,	1918/061,	KCCM

And here is another one which illustrates the use of 'serie:':
start: 125m
finish: finish

cat: K1 aspiranten jongens

serie: A 1/2 finale 125m
,,x,
Thomas,		Claessens,	7781/100,	LKCC
Stephane,	Willems,	1817/060,	KCCM
Tanguy,		Zachary,	7682/087,	LKCC
Pieter,		Belmans,	1917/013,	KCCM
,,x,

serie: B 1/2 finale 125m
,,x,
Baptiste,	Hamoir,		7696/069,	RCNML
Olivier,	Cauwenberg,	1683/015,	KCCM
Remy,		Lallemand,	7748/071,	RCNML
Kevin,		De Bont,	1396/018,	KCCM
Specifying the participants file

You will have to specify the name (and location) of your participants file to the KaRa programme and obviously you will have to edit the content of that file. I think the best way to go about this is to start from an already existing participants file (from an example or a template which is provided in the KaRa distribution or from a previous race).
For all these things you use the main menu choice 'Participants'.

Timing

After clicking on 'Timing', the centre of your interface will look like this:

On the right hand side a number of buttons have appeared:
one button for each manche you specified in the 'Specifications'; we call them 'views'.
and one button for 'Ready'.

You can now manage the timing of each manche as well as the penalties, if they have been specified.
Just click on one of the buttons on the right.

Continuing, using backup data from a previous action

If earlier on there were already timing actions performed on a particular race you will be confronted with the pop-up window, shown next to this text, which asks you to:
either 'restore data', which means continuing with the already existsing data
or 'begin anew', beginning with a fresh start.

It is very important that you understand that chosing to 'begin anew' means all data previously collected will be thrown away!
That may be a good idea when you are just testing the system.

But if you are really continuing on a race then you must choose to 'restore data'!

Setting the exact time & date

Before explaining how to manage the timing of a race there is an important fact about the clock of the computer which you must understand.
If you want to set the clock of the computer to the correct time (and date) you must do so by using a tool provided with your operating system.
KaRa does not provide a way in which to manipulate the clock of the computer.

Therefore it is recommended to set the time (and date) of your computer before starting KaRa if you are going to do 'Timing' and if the time and date are important.
In fact, if the time & date of your computer are reasonably well set, probably the smartest thing to do is to leave the time of your computer as it is and adjust the watches and stop-watches that may be used by your officials to the time of the computer!

Handling the chrono

If you are going to use the electronical chrono, which may work automatically (like with infra-red detection cells), or manually with a button, you will have to activate the chrono.
First of all make sure that your computer is connected with the external electronical chrono through the serial port. Use the serial cable which normally should be connected to the electronical device. photo of PC with external chrono device
To activate the chrono, click on 'Start chrono'. That will make KaRa contact the the external electronical chrono. It will set that chrono to the time of your computer and the chrono will be ready from that moment on to send times to KaRa.

If all goes well:

Once the chrono is activated like that, every time someone passes through the infra-red detection cells or pushes the manual button, that event is registered by the chrono, which will keep the exact time in its memory (up to 11 such times can be kept by the external electronical chrono in its memory).

KaRa will interrogate the external electronical chrono regularly (every 1.5 seconds; to make sure you should check the source code). If the chrono has one or more times it will pass them on to KaRa during such an interrogation. This explains why it may take up to 1.5 seconds before a time appears in the interface.

You can click on 'Status' to check out the status of the external electronical chrono.
If all is well you will see ChronoStatus: overflow=0 status=1 sensors=[1,1,1,1] in the information window, which means that:

Working on the data in a view (start, finish, penalties)

Whether you have activated the chrono or not, you can always work on the data of the participants.

The first thing to do is to choose a 'view' on the data. In other words you must click on the button of the manche you want to handle, that can be any of the buttons: 'manche: 1', 'manche: 2', ...

After clicking on a 'manche' button the data of all participants will be presented to you, like shown here.

The two first columns of the table contain the start number and the name of the participant.
If you click on either the start number or the name of a participant, the data on that participant will be shown in the results window. Like that you can easily check out the situation for any of the competitors.

The next column(s) contain the timing data (and penalties if applicable) for the participants.

Below you see the buttons and with those buttons you can scroll to the previous or next participants in the table.

Dragging a time onto a participant

In this section it is explained how you can set the start and finish times of every participant.
Basically what you do is 'drag' one of the lines from the 'incomming data' window to a cell in the view you have on screen at that moment. By 'dragging' we simply mean that you point your mouse-pointer to one of the items in the 'incomming data' window; then you click on the left mouse button (to grab the item) and then you slide the mouse-pointer to the cell where you want to put the time.

You will have noticed that the 'incomming data' window always contains at least the basic choices. These items allow you to take care of situations in which no specific time should be specified with a participant because something out of the ordinary has happened. For example: if a boat has capsized you should rag 'no finish' to the (finish) cell of the corresponding participant.
These basic choices can be handled just like incomming times.

After you have started the chrono and the chrono is activated by a manual button or by a participant crossing the electronic finish line the chrono will pass on the time to the 'incomming data' window of KaRa.
The same happens if you hit one of the 'Function keys' (F1 ... F12). This allows you to work with the system without having to connect the chrono to you computer, for example to experiment with the system.

To get an idea of how a normal administration could run, in what follows you are taken through a couple of likely scenario's.

Suppose you have pre-fixed starting times. Say every participant starts with a minute interval.
In that case you will have set the settings such that: Specify start time(s) and interval(s) are correctly set for all heats (manches)!
Thanks to that the start times are already taken care of. However if a participants fails to turn up (forfeits his start) you can drag one of the basic choices onto the cell corresponding to the start of that participant.
Also if a participant starts at a different time than planned you drag the 'manual keyboard input' onto the required cell. Nect you click the mouse-pointer into that cell and then you will be able to type in a time. It is important to type the time like this: HH:MM:SS.hh. The system is intelligent enough to guess that if you leave the hundredths of a second out that corresponds to zero and stuff like that. But please watch what you are doing.
So you will constantly have the finish view before you and you will just have to drag the right times to the corresponding cells. Do not forget to drag superfluous times to the trash can. It is a very good idea to have as few times in the 'incomming data' as possible, because you are more likely to make mistakes when there are a lot of them.
After all participants have been handled (you can proceed before handling all of them, but try to have a correct start and finish time with every participant) you can press 'Ready' and even exit the programme since all result list will be ready.

If you also have start times which come into the system automatically (electronically) then it is likely that you will constantly be moving from the 'start' view' to the 'finish' view as times come to your system.
In that case it is even more important to be very concentrated.
You are always able to use the fact that before every time in the 'incomming data' window there is a number (or ... in case you are using the 'Function keys') which indicates from where the time came. The number depends on which input socket you are using on the chrono input lines.

Tip: when you receive information about a participant who has not started, will not finish or was disqualified make sure to specify that as soon as possible in the table! That way you will not be able to make the mistake to drag a time onto that participant (while in fact you are handling the time of the following participant).
How to undo a time action

Because sometimes errors are made when dragging a time or the bib number of a competitor is not clearly visible at first KaRa allows you to undo a time.
If you right-click on a time cell, a small popup window will appear with 'Undo'. If you then move the cursor over 'Undo' it will be shown in red and if you release the mouse at that point, the time in the cell will be taken out and put back in the 'incomming data window'. Moreover, if that cell contained a previous time that will be set instead.

Save & exit from timing

To quit from the 'Timing' you should first stop the chrono if it was started previously and the click on the button 'Ready'.
This will save all results one more time and bring KaRa back in the state it was before 'Timing'.

Info

The right-most button in the main menu is 'Info'.
In its sub-menu you will find access to information on the KaRa version, the chrono hardware and the (free software foundation) license.

Preferences

One of the menu options withing the main menu choice 'Race' is 'Preferences'. There you can set a number of preferences.

Info level
This option allows you to specify the information-level of the messages that are shown in the information window (below in the KaRa interface).
If you only want to get important messages, but do not want to see debugging information then you can choose 'general information'. However if you want to get all the information you can get (for example if you encounter problems and want to find out what is going wrong) then 'debugging information' is the right choice.

Serial Port
This setting only serves on the Windows operating system!
Normally the serial port (RS232) is COM1, but that may not be the case. This settings comes in use is when your computer dooes not have a serial port and you use an USB -> RS232 convertor. Then the USB port will probably not be COM1 and you can set that to e.g. COM5.
You can find out to which COM-port your cable is hooked up in the 'Device Manager'.

Bell sounds
Normally when in 'Timing' mode, times will arrive in your interface without a sound. However you can choose to have a bell sound for all or a number of those incomming times.

Number of table rows
You can specify the (maximum) number of rows that will be shown in the table with participants. Just specify the biggest number of rows that is possible for your screen.

License information file usage
If you have specified a file with license information then information on the participants which is not present in the participants file will be searched for in the license information file. You can even specify to always use the information (on first name, family name, ...) from the license information file regardless of what is in the participants file, essentially overruling that.

Printing

The same applies as for 'setting the exact time & date': KaRa does not provide a way to print the output files it produces (like the clubs list or the results).
You must print by using a tool provided with your operating system (like using a file-manager or typing print commands on the command line).

Known problems

Interface freezes: reboot after/during long time usage
The interface is known to have frozen.
When this has happened it was when several of these applied: It may be that a memory leak (in the graphical interface toolkit) is at the core of this problem. The best weapon against this happening is to quit KaRa and reboot from time to time (say after three hours or so) and especially if (part of) a competition was handled which consumed an awfull lot of graphical actions (many up/down screen manipulations).

No result time, although start and finish time are present
If the programme has been stopped in an abnormal way and is restarted there may be the problem that (some) result times do not appear.
In some cases this may be overcome by dropping the start or finish time again: If necessary try this with the start time, then with the finish time.