Hello Together,
I am new to Diadem and VBS and have a question regarding changing the data types. I am reading data from a CSV-file. So far its working good, but I am not able to get the time right.
The input file is in this format:
T, 1380723715680 '1380723715680 = Start time in ms (Computer Time) H, Name1, Name2, Name3 ' First column time in ms after the Start Time H, REAL, REAL, REAL 0, 0, 0, 0 ' First data line 200, 20, 50, 100 ' second data line 200 ms after the first one
I can read out and convert the start time by:
File.SkipValue() 'Skip "T," TimestampMS = File.GetNextStringValue(eString) StartTimeDate = DateAdd("s", TimestampMS / 1000, "01/01/1970 00:00:00")
This gives me the right time and date information. In this example 02.10.2013 14:21:55 I can also easyly setandreadoutthechannelinformationandcontainingdata.
But I don't manage to get the time information in a way of Offset + ms value and convert it to Time and Date information. I only manage to sum up the ms value with the offset as an eR64 value. How can I convert this than to eTime?
Any help or better idea?