Converting trend history files from text to binary
- Last UpdatedOct 29, 2026
- 1 minute read
Use the TXT2HST.exe program to convert text-based history files back into binary format.
Before you begin this task, you must have both of the following:
-
The text file (for example, 02950201.txt) that contains the historical data; and
-
The corresponding header file (for example, 02950201.hdr) that provides the column numbers and names.
To convert a file, use the following procedure:
-
At the command prompt, change directory (cd) to the Bin sub-folder of the Studio program folder, typically at:
cd C:\Program Files (x86)\AVEVA\AVEVA Edge 2026\Bin
-
At the command prompt, copy the TXT2HST.exe into the same directory where the text and header files are located.
-
At the command prompt, type TXT2HST.exe and specify the following parameters:
-
filename: Name of the text file
-
[separator]: Data separator character (default is <TAB>)
-
[/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:
TXT2HST.exe 02950201.txt
The program combines the text file and header file in order to create a binary file with the same name (for example, 02950201.hst).
-
-
When the program is finished, type exit to close the command prompt.
Note: You cannot create a math script for the TXT2HST.exe program and use it in a Math worksheet in order to convert text files into binary format, as you can for the HST2TXT.exe program. The math script shortcut is available for binary files only.