ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
04-15-2008 11:58 AM
04-15-2008 12:16 PM
04-16-2008 06:41 AM
04-16-2008 08:59 AM
You can't get a correct time in the first column because the first element in the dynamic data type has no time information. The first element is a 1D array that you convert to dynamic data but since the 1D array has no time information, there is no time information after the conversion. You've created a dynamic data type that the Write to Measurement File was never designed to handle.
Yes, you can create your own file reader instead of the Read From Measurement File. You can use the Read From Spreadsheet File to get all of the columns and then you can parse out what you need. You will need to set Read From Spreadsheet to the string type in order to get the time stamps.
04-16-2008 09:28 AM
A dynamic data type is an array of waveform data types under the hood. Knowing this, you can easily add timing information in one of two ways.
Note that the timing information will always be in the first column (assuming you write the first column) and is always relative to the initial timestamp. The initial timestamp is given in the header. This was done for performance and space reasons. The header also contains the dt value, so the first column is actually not really needed in most cases.