18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Alarms, Events, and Trends<br />

To convert a file, use the following procedure:<br />

1. From a DOS window, change directory (cd) to the IWS \Bin directory:<br />

cd C:\Program Files\<strong>InduSoft</strong> Web Studio v7.1\Bin<br />

2. At the command prompt, copy the Hst2txt.exe into the same directory where the .hst file is located.<br />

3. At the command prompt, type Hst2txt.exe and specify the following parameters:<br />

• filename: Name of the trend history file to convert<br />

• [separator]: Data separator character (default is )<br />

• [/e]: Extended functionality (convert data with more than 10 characters)<br />

• [/i:HH:MM:SS]: Start time in hours (HH), minutes (MM), and seconds (SS)<br />

• [/f:HH:MM:SS]: Finish time in hours (HH), minutes (MM), and seconds (SS)<br />

• [/m]: Include milliseconds in the Time column (Type 1 to print the milliseconds value in the text file<br />

created from the .hst file.)<br />

For example:<br />

Hst2txt.exe 01952010.hst<br />

The program creates a .hdr (header) file and the .txt file, which are both plain text files that can be<br />

viewed using any text editor (for example, Notepad).<br />

• The .hdr file contains the name of the tags configured in the Trend Worksheet.<br />

• The .txt file contains the tag values saved in the history file.<br />

4. After the program converts the file, type Exit to close the DOS window.<br />

See also:<br />

Note: Alternatively, you can use the HST2TXT math script in a Math worksheet to convert binary<br />

files into text format automatically without having to use a DOS window.<br />

• Converting Trend History Files From Text to Binary<br />

• Creating Batch History<br />

• Configuring a Default Database for All Task History<br />

Converting Trend History Files from Text to Binary<br />

IWS provides the TXT2HST.EXE program to convert text files back into binary format.<br />

To convert a file, use the following procedure:<br />

1. From a DOS window, change directory (cd) to the IWS \Bin directory:<br />

cd C:\Program Files\<strong>InduSoft</strong> Web Studio v7.1\Bin<br />

2. At the command prompt, copy the Txt2hst.exe into the same directory where the .txt file is located.<br />

3. At the command prompt, type Txt2hst.exe and specify the following parameters:<br />

• filename: Name of the ASCII file with history data to convert<br />

• [separator]: Data separator character (default is )<br />

• [/e]: Extended functionality (data value with more than 10 characters)<br />

• [/i:HH:MM:SS]: Start time of data value in hours (HH), minutes (MM), and seconds (SS)<br />

• [/f:HH:MM:SS]: Finish time of data value in hours (HH), minutes (MM), and seconds (SS)<br />

<strong>InduSoft</strong> Web Studio Page 265

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!