Data Logging and Display 3. At the command prompt, type Hst2txt.exe and specify the following parameters: • filename : Name of the trend history file to convert • [separator] : Data separator character ( default is ) • [/e] : Extended functionality (convert data with more than 10 characters) • [/i:HH:MM:SS] : Start time in hours ( HH ), minutes ( MM ), and seconds ( SS ) • [/f:HH:MM:SS] : Finish time in hours ( HH ), minutes ( MM ), and seconds ( SS ) • [/m] : Include milliseconds in the Time column (Type 1 to print the milliseconds value in the text file created from the .hst file.) For example:
Hst2txt.exe 01952010.hst The program creates a .hdr (header) file and the .txt file, which are both plain text files that can be viewed using any text editor (for example, Notepad). • The .hdr file contains the name of the tags configured in the Trend Worksheet. • The .txt file contains the tag values saved in the history file. 4. After the program converts the file, type Exit to close the DOS window. Note: Alternatively, you can use the HST2TXT math script in a Math worksheet to convert binary files into text format automatically without having to use a DOS window. See also :
• Converting Trend History Files From Text to Binary • Creating Batch History • Configuring a Default Database for All Task History Converting Trend History Files from Text to Binary IWS provides the TXT2HST.EXE program to convert text files back into binary format. To convert a file, use the following procedure: 1. From a DOS window, change directory ( cd ) to the IWS \Bin directory: 2. At the command prompt, copy the Txt2hst.exe into the same directory where the .txt file is located. cd C:\Program Files\InduSoft Web Studio v7.0\Bin 3. At the command prompt, type Txt2hst.exe and specify the following parameters: • filename :
Name of the ASCII file with history data to convert • [separator] : Data separator character (default is ) • [/e] : Extended functionality (data value with more than 10 characters) • [/i:HH:MM:SS] : Start time of data value in hours ( HH ), minutes ( MM ), and seconds ( SS ) • [/f:HH:MM:SS] : Finish time of data value in hours ( HH ), minutes ( MM ), and seconds ( SS ) For example: Txtt2hst.exe 02950201.txt The program creates a .hdr ( header ) file and converts the .txt file into a .hst binary file. 4. After the program converts the file, type Exit to close the DOS window. Note:
You cannot create a math script for the TXT2HST.EXE program and use it in a Math worksheet to convert text files into binary format as you can for HST2TXT.EXE . The math script shortcut is available for binary files only. See also : • Converting Trend History Files from Binary to Text Page 238 InduSoft Web Studio