Data Logger GUI Component
17 December 1999
The ‘Data Logger’ Input Screens displays HTML/Forms that can be configured by the user. To develop an input screen in a different language the user has to re-write the html forms according to the rules specified in the help system and place these files in certain specific directories (explained below). The RTS, based on the current language setting will then pick the html forms from relevant directories and show it at Data Logger Input time.
A General Note on Resource Files
The resource file created can be in one of these ‘Primary Languages’. And the Locale String in the resource file must contain one of the ‘Language Strings’.
For example to create a German Resource file, the Locale String specified in the resource file must be either "deu" or "german".
And the resource file must be placed in the <paws installation directory>\tyx\Rsrc
The following table illustrates all the possible languages.
(MS Visual C++ 6.0 Documentation)
|
Primary
Language |
Sublanguage
|
Language String
|
|
Chinese |
Chinese |
"chinese" |
|
Chinese |
Chinese (simplified) |
"chinese-simplified" or "chs" |
|
Chinese |
Chinese (traditional) |
"chinese-traditional" or "cht" |
|
Czech |
Czech |
"csy" or "czech" |
|
Danish |
Danish |
"dan"or "danish" |
|
Dutch |
Dutch (Belgian) |
"belgian", "dutch-belgian", or "nlb" |
|
Dutch |
Dutch (default) |
"dutch" or "nld" |
|
English |
English (Australian) |
"australian", "ena", or "english-aus" |
|
English |
English (Canadian) |
"canadian", "enc", or "english-can" |
|
English |
English (default) |
"english" |
|
English |
English (New Zealand) |
"english-nz" or "enz" |
|
English |
English (UK) |
"eng", "english-uk", or "uk" |
|
English |
English (USA) |
"american", "american english", "american-english", "english-american", "english-us", "english-usa", "enu", "us", or "usa" |
|
Finnish |
Finnish |
"fin" or "finnish" |
|
French |
French (Belgian) |
"frb" or "french-belgian" |
|
French |
French (Canadian) |
"frc" or "french-canadian" |
|
French |
French (default) |
"fra"or "french" |
|
French |
French (Swiss) |
"french-swiss" or "frs" |
|
German |
German (Austrian) |
"dea" or "german-austrian" |
|
German |
German (default) |
"deu" or "german" |
|
German |
German (Swiss) |
"des", "german-swiss", or "swiss" |
|
Greek |
Greek |
"ell" or "greek" |
|
Hungarian |
Hungarian |
"hun" or "hungarian" |
|
Icelandic |
Icelandic |
"icelandic" or "isl" |
|
Italian |
Italian (default) |
"ita" or "italian" |
|
Italian |
Italian (Swiss) |
"italian-swiss" or "its" |
|
Japanese |
Japanese |
"japanese" or "jpn" |
|
Korean |
Korean |
"kor" or "korean" |
|
Norwegian |
Norwegian (Bokmal) |
"nor" or "norwegian-bokmal" |
|
Norwegian |
Norwegian (default) |
"norwegian" |
|
Norwegian |
Norwegian (Nynorsk) |
"non" or "norwegian-nynorsk" |
|
Polish |
Polish |
"plk" or "polish" |
|
Portuguese |
Portuguese (Brazilian) |
"portuguese-brazilian" or "ptb" |
|
Portuguese |
Portuguese (default) |
"portuguese" or "ptg" |
|
Russian |
Russian (default) |
"rus" or "russian" |
|
Slovak |
Slovak |
"sky" or "slovak" |
|
Spanish |
Spanish (default) |
"esp" or "spanish" |
|
Spanish |
Spanish (Mexican) |
"esm" or "spanish-mexican" |
|
Spanish |
Spanish (Modern) |
"esn" or "spanish-modern" |
|
Swedish |
Swedish |
"sve" or "swedish" |
|
Turkish |
Turkish |
"trk" or "turkish" |
How to Configure Custom Data Logger HTML files
- Check Help for complete documentation
Where to put the Configured Data Logger HTML files
The Data Logger HTML files can be organized in the following general manner.
- If the HTML files that are part of the Data Logger Component (tps_start.html, tps_finish.html etc.) are supposed to be project specific then they can reside in the same project directory.
Example
If the project is in directory c:\usr\paws\SampleProject
The HTML files can be in c:\usr\paws\SampleProject\
- If the HTML files are language specific then create a directory under the project with the same name as the "Language String" specified in the resource file.
Example
If a GERMAN resource file and if the "Language String" specified in the resource file is "german"
The HTML Files must be placed in c:\usr\paws\SampleProject\german\
- If the HTML files need to shared among all projects then you can place these html files in a <installation root>\tyx\datalog directory
Example
If PAWS software is installed in c:\usr
The HTML files can be in c:\usr\tyx\datalog
- If the HTML files need to be shared among all projects and are language specific then create a directory with the same name as the "Language String" specified in the resource files.
Example
If both GERMAN and FRENCH html files that are shared among projects
The HTML files must be in c:\usr\tyx\datalog\german for the GERMAN version
& The HTML files must be in c:\usr\tyx\datalog\french for the FRENCH version.
The Search order
The HTML files are searched in the following order by the Data Logger component
1. <project Folder>\<Active Language Setting>\
2. <installation directory>\tyx\datalog\<Active Language Setting>\
3. <project Folder>\
4. <installation directory>\tyx\datalog\
Example
The project is called SampleProject and is in c:\usr\paws\SampleProject
And the RTS has been configured with a GERMAN resource file and the "Language String" is "german" in that resource file.
- Check c:\usr\paws\SampleProject\german\ if html file exists, if yes display else go to step 6.
- Check c:\usr\tyx\datalog\german\ if html files exists, if yes display else go to step 6.
- Check in c:\usr\paws\SampleProject\ if html file exists, if yes display else go to step 6.
- Check in c:\usr\tyx\datalog\ if html file exists, if yes display else go to step 6.
- Display default GUI.
- End.
How to Configure the Data Logger GUI in German
Note: A German resource must already exist in <installation directory>\tyx\Rsrc
With the "Language String" set to either "german" or "deu".
Check Help for complete documentation.
If PAWS Installation directory is c:\usr\
Step 1: Create a project called SampleProject under c:\usr\paws\SampleProject
Step 2: Copy the example html files from c:\usr\tyx\src\DlogTest\ to the project directory
Step 3: The directory should have tps_open.html, tps_start.html, tps_finish.html,… in the project directory.
Step 4. Build and compile a simple atlas program (or you can copy the atlas program from c:\usr\tyx\src\DlogTest\dlogtest.atl)
Step 5. Run the RTS
- Check to see if Data Logger is enabled.
- Data Logger GUI component is set as "datalogger.JdlogGui".
- Also check to see if the necessary events for notification are enabled.
- RTS needs to be restarted in case any changes were made.
- The Options dialog are available under RTS -> Control -> Options.
|
a. Make sure Data Logger is checked

|
|
b. enable the custom Datalogger GUI

|
|
c. Enable the events

|
Step 6. On running the RTS, the configured HTML forms will be displayed
Step 7. Now make sure that the GERMAN resource is selected.
RTS-> Control -> Options
Step 8. Close the RTS
Step 9. Edit the HTML files (check Help for more Documentation)
Step 10. Create a directory called "german" under c:\usr\paws\SampleProject
Step 11. Under c:\usr\paws\SampleProject\german copy the modified html files.
Step 12. When you start the RTS, the datalogger GUI should display the modified German HTML file.
|