DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

eTime not a valid data type in a binary data plugin

 I am creating a new plugin for a custom binary data file.  I am using the GETBINARYBLOCK method and I can get all of my data except the timestamp.  The timestamp is a 128 bit number but R128 is not an option for the data type when I add the block.  I tried using the eTime data type but I get an error stating "The value eTime is not a valid value for the argument DataType of the method add"

 

The line that get the error is:

Set UTCtime = BlockT.Channels.Add("UTC_Time", eTime)

 

with Dim BlockT : Set  BlockT = File.GetBinaryBlock() previously in my code

 

Does eTime not work in this situation?  If not can I read in two 64 bit blocks and combine them into one channel?

 

Using DIAdem 18 64-bit

 

Thanks,

Andrew

0 Kudos
Message 1 of 2
(2,173 Views)

Hi All,

 

The eTime channel data type in a VBScript DataPlugin is used for a column in an ASCII file which contains datetime stamps.  The File.Formatter.TimeFormat property sets the expected datetime format.  The DataPlugin then converts each ASCII string found in that column to a datetime value.

 

Brad Turpin

Senior Technical Support Engineer

National Instruments

0 Kudos
Message 2 of 2
(2,101 Views)