05-08-2020 10:18 AM
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
05-22-2020 03:31 PM - edited 05-22-2020 03:32 PM
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