DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Header file entry for Text Channel

I have taken an ASCII Text Data file, read the file, and created a Header File, then saved the data into a binary file. This is my attempt to speed up the loading of the text file. One of the columns is a text column, containing a flag for the state of the test. I can not figure out how to define the column as a Text Column in the Header File. If I define it as a numeric column, it returns an error for every entry in the data file. Normal (one of the states) is not a Numeric Value.
 
The script file(s) I am using is a modification of a script listed on this board by Brad Turpin ( TimeSlice DAT Hdr Create.zip ) The only thing I have changed is the Test for the Channel Name to see if it contains on of 3 states. If Date is present in the Channel Name , it changes the field to a Time channel, if the channel contains Relay it changes it to a Text channel (which doesn't work), else the Channel is a Numeric.
 
There must be a way to define a Text Channel in a Header File. I hope someone can show me the way.
 
Thanks
Bill Lane
Test Engineer
Takata, INC.
0 Kudos
Message 1 of 3
(3,366 Views)

Hello Bill!

The DAT format was never able to store text channels (TDM is able today). Please refer to the DAT format description on your DIAdem CD or in this post.

Your idea to convert it to a numeric value is the right way. The error message must come out of the header. Do you convert all properties to numeric values? See page 4-6 and following in the header description or search for the word 'normal' in the created header file.

Matthias

Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 2 of 3
(3,358 Views)

Bill,

From how you described the file it may be easier to go through a DataPlugin to read the file. I was wondering whether you could provide an example of the two flavours of the file so that we can have a look at them. Also, what is the range for the size of the file ?

Andreas

0 Kudos
Message 3 of 3
(3,351 Views)