Import, export and backups
This chapter describes how to export test data to Excel, how to import data from Excel files, WinLactat and other Ergonizer databases, where Ergonizer stores its data, and how to back up and restore the database.
Exporting to Excel
The commands under save test data as an Excel
file (.xlsx) in a folder of your choice.
- Export the selected subject’s data to Excel
Available while a test is open. The dialog Test selection lists all tests of the subject; select the tests and click Start export.
- Individual subjects
First select the subject, then the tests as above.
- Selected subjects
The dialog Export data selects the tests by time interval, sex, sport, discipline, group and type of ergometry; a counter shows the number of tests found. Click Start export.
- All subjects
Exports all tests without further selection.
Ergonizer suggests a file name with the subject’s name (or your institution’s name), the date and the time. While Data export is running… is shown, you can cancel the export; no partial file then remains. At the end, Ergonizer confirms that the file has been saved.
Bemerkung
The dialog Export data remembers the time interval, including the end date. Tests added later are only included if you reset the end date with the button next to it.
Content of the export file
The sheet with the data contains one row per test; the first row holds the column titles. From left to right, the columns contain the subject data (PID, name, date of birth, sex, address, sport, groups, contact), the test data (date, type of ergometry, age, body weight, height, BMI and more), the protocol, the values of each stage and of the recovery, and the results (thresholds in all units with heart rate and lactate, power at fixed lactate concentrations, lactate constant, Critical Power and MMP values, estimated and measured \(\dot{V}\mathrm{O}_{2}\mathrm{max}\), percentiles and training zones). Columns without any value are left out. If the start of training is missing, the training age stays empty: the estimate of 1 year is not exported. For tests without lactate, \(W'\) and Critical Power stay empty.
Below the column titles there are two hidden rows that Ergonizer needs to read the file in again; do not delete them. A second sheet contains the program version.
Tests that cannot be evaluated – for example without any heart rate values – are skipped when several subjects are exported.
The export is suited for statistics and for transferring tests to another Ergonizer installation of the same language (see Import (MS Excel)). It is not a backup: comments and other data are missing; see Backups.
Anonymized exports
The commands Single subject (anonymized), Selected subjects (anonymized) and All subjects (anonymized) first show the note An anonymized file cannot be imported back into Ergonizer.
Instead of names, the file contains only a running number per subject (column
ID). Identity and location data, the start of training and the squad are left
out. The test date is reduced to year and month, age and training age are given
with one decimal place, and the subjects appear in random order. The file name
contains anonym.
Bemerkung
In small groups, a person may still be recognized from the remaining data. Check the data protection requirements before passing such a file on.
Importing data
The commands under add tests from other sources to your database. Imports from Excel, WinLactat and another Ergonizer database work alike:
After a note, select the file or folder. No cancels the import; with Don’t show again you switch off the note for this kind of import.
In the dialog Import records, set the earliest test date to import (Import from (date):) and, if you like, a group under Assign to group (new name = new group): either for the Imported tests only or for the Subjects with all their tests. A new name creates a new group.
Click Start. Ergonizer first saves a backup of your database (see Backups), then imports the tests and shows the progress.
Existing subjects are not overwritten: Ergonizer recognizes them by the PID or by name, first name and date of birth.
Import (MS Excel)
Import (MS Excel) reads Ergonizer export files, also from Version 5; you can select several files at once.
The file must come from an Ergonizer with the same program language. Ergonizer recognizes the type of ergometry by its name in the current program language; tests with unknown names are skipped and listed at the end.
Each row needs date of birth, sex, test date, type of ergometry and body weight; rows without these entries are skipped.
A test of the same subject on the same day with the same type of ergometry is skipped if it is identical. If its content differs, Ergonizer asks: Keep both, Replace or Keep existing.
A new subject is only created if one of their tests is actually imported.
An anonymized export file is rejected with This file was exported anonymized and cannot be imported., also if it comes from an older version.
Groups from the file are taken over; missing groups are created.
Ergonizer does not read the results from the file but recalculates them. Only a measured \(\dot{V}\mathrm{O}_{2}\mathrm{max}\) is taken over (relative in ml/min/kg, otherwise absolute in L/min), also from older export files.
Import .itf (WinLactat)
Import .itf reads all .itf files in a folder (without subfolders)
exported from WinLactat: subjects, tests, stage values and recovery values.
Field tests are not imported.
Each file is moved to a subfolder
doneafter its data have been saved. To import a file again, copy it back.Files that cannot be used are listed at the end (These itf files were not imported …).
WinLactat files do not contain the sex of the subject. Ergonizer creates all subjects as male; check and correct the sex afterwards (Subjects and groups).
Import from another Ergonizer database
Import from Ergonizer database (v5/v6)… merges another Ergonizer
database into yours, for example from a second workstation, an old Version 5
database or a backup. Select the file ergonizer6.db or ergonizer5.db.
Ergonizer checks each test:
identical tests (same date, type of ergometry and content) are skipped;
a test on the same day with another type of ergometry is added;
for a test on the same day with the same type of ergometry but different content, Ergonizer asks: Keep both, Replace or Keep existing. With Apply this decision to all future cases the choice applies to all further cases;
when importing a Version 5 database, a test with an unknown type of ergometry is skipped and noted in
import_conflicts.log.
At the end, Ergonizer reports how many tests are new, were skipped as identical, remained unchanged because of a conflict, or have an unknown type of ergometry. If you cancel, it reports how many new tests have been stored until then.
Conflicts are logged in the file import_conflicts.log in the data directory.
Ergonizer reads each imported test back for checking and stops the import with
a reference to the backup if a difference occurs. Depending on the size of the
database, the import may take several minutes.
Ergonizer works with a temporary copy in the data directory; the database you import from and its folder remain unchanged.
Clinical interfaces (HL7, GDT)
For clinics with a corresponding licence, Ergonizer can take over orders and patient data from HL7 or GDT files (see Subjects and groups) and, with HL7, write the results back. If the start of training is missing, the line with the training age is left out, so the estimate of 1 year is never passed on as a measured value. The folders are set up in the settings, usually together with the Ergonizer support.
The data directory
By default, Ergonizer 6 stores its data in %ProgramData%\Ergonizer6\data (trial
version: %ProgramData%\Ergonizer6 Demo\data). The folder contains:
File or folder |
Content |
|---|---|
|
The database with all subjects, tests and comments |
|
Results of the background calculation for the group analysis; rebuilt when needed |
|
Automatic backups (unless another folder is set), see Backups |
|
PDF files created for sending by e-mail |
|
Temporary copy during a database import; removed afterwards. A copy left behind by a crash is removed at a later start once it is older than one day |
|
Log of the conflicts of database imports |
Settings and licence are stored in Windows, not in the data directory.
To use another folder, change Data directory under . Ergonizer then works with the database in the new folder at once; no data are copied, and the old folder remains unchanged. A folder that does not exist is not accepted.
If the folder contains no database, Ergonizer asks This folder contains no Ergonizer database. Do you want to create a new, empty database there? If you confirm, your tests seem to be gone; select the correct folder again to get them back.
If you select a data folder of Version 5, Ergonizer offers Create a copy and work there; the Version 5 folder remains unchanged.
If you select a folder with data in the old file format, Ergonizer offers to take them over, see Taking over data in the old file format.
Several workstations can share one database in a network folder. The background calculation then runs on one workstation only. Avoid editing the same test on two workstations at the same time.
Changing from Version 5
Ergonizer 6 does not work in the data folder of Version 5. When it starts for the first time and finds data of Ergonizer 5 for the same Windows user, it copies them into its own folder and confirms this. The Version 5 database remains unchanged, and Ergonizer 5 can still be used – but new entries in Ergonizer 5 do not appear in Ergonizer 6. To transfer tests added later, use Import from another Ergonizer database. If this setup fails at the first start, Ergonizer repeats it at the next start.
If the Version 5 data lie in a network folder, Ergonizer asks
Where should Ergonizer 6 store its data?: in a shared folder data6
next to the Version 5 folder for several workstations, or on this computer only.
Without any Version 5 data, Ergonizer starts with an empty database.
If the database cannot be found later, the dialog Data directory not found offers to select another data directory (recommended) or Create a new, empty data directory (existing data are kept). If you cancel and answer No to the question that follows, the dialog appears again.
Taking over data in the old file format
Ergonizer versions before 5.1 (spring 2018) stored their data in four files
instead of a database. Ergonizer 6 recognizes such a data directory by the files
proband.dat, messung.dat, index.dat and length.dat and takes the data over
into a new database:
at the first start, if the settings of an older installation point to such a folder: Ergonizer shows This folder contains data in the old Ergonizer format and then takes the data over;
in the settings, if you select such a folder under : Ergonizer shows the same note with Take over data and Cancel. The data are taken over when you close the settings;
when the data directory is not found and you select such a folder in the dialog that appears at the start.
Ergonizer creates the folder data6 with a new database directly next to the old
folder, takes over subjects, tests and the comments of the tests from the
subfolder comments, and then works with data6 as its data directory. The old
files remain unchanged. If data6 already contains a database, for example from
an earlier attempt or another workstation, Ergonizer uses it.
Tipp
If the old folder is in a synchronized cloud folder, the new database is created there as well. Copy the old folder to a local folder first and select the copy.
Ergonizer checks each test as for Import from another Ergonizer database: identical tests are skipped, and for a different test on the same day with the same type of ergometry it asks Keep both, Replace or Keep existing. Replace also replaces the comment of the existing test. Comments are only taken over with tests that are new to the database.
You can keep working while the data are taken over; with large data sets this can take a while. Cancel (also the close button or Esc) stops after the current test; the tests taken over until then remain, and a new start begins from the beginning again, skipping identical tests. At the end, Ergonizer reports how many subjects were read and how many tests were taken over, skipped as identical or kept because of a conflict. If the data cannot be read, Ergonizer asks whether to try again at the next start.
Backups
Automatic backups
Ergonizer saves a complete copy of the database:
when the program closes, at the interval set under – Never, Daily, Weekly (default) or Monthly;
before every import (when you click Start), and
before deleting the content of a group (Subjects and groups).
The backups are stored in the folder set under
; if the
field is empty, in the folder backup of the data directory. They are named for
example ergonizer6_before_import_20261018_143000.db.bak. With
Keep at most: you set how many backups of each type are kept (1–99,
default 10); the regular backups and those before an import or a deletion are
counted separately.
While the backup runs when the program closes, the status bar shows Backing up the database …. If the database is 20 MB or larger, or if the data directory or the backup folder is on a network, a dialog with the same text and a progress bar appears instead. It cannot be cancelled, and it closes by itself. If this backup fails, no message appears, and Ergonizer tries again the next time it closes. If a backup before an import or a deletion fails, Ergonizer asks whether to continue.
If the Windows session ends while Ergonizer is open, no backup is made. If it is still due at the next start, Ergonizer makes it then. Apart from this, there is no automatic backup when Ergonizer starts, or before a single subject or test is deleted.
Your own backup
In addition, make your own backups regularly:
Close Ergonizer – on all workstations that use the database.
Copy the file
ergonizer6.dbfrom the data directory to a safe place; the backup folder may be copied as well.ergonizer_calcs.dbis not needed.
The database is a single file; there are no further files belonging to it.
Restoring a backup
Close Ergonizer on all workstations.
In the data directory, rename
ergonizer6.db(for example toergonizer6_old.db).Copy the backup into the data directory and rename it to
ergonizer6.db(for an automatic backup, remove the name parts afterergonizer6and the ending.bak).Delete
ergonizer_calcs.db; Ergonizer rebuilds it.
To take over only some tests from a backup, rename the backup to ergonizer6.db
in a separate folder and use Import from another Ergonizer database.