LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get and write the time column from DAQMax Read

How to output the time column from DAQMax Read. VI and combine with analog data columns acquired through DAQMax? I used VI called Get Waveform Time Array and tried to realized this but it won't work.
0 Kudos
Message 1 of 4
(2,982 Views)

The function Get Waveform Time Array does return an array of time stamps so you need to explain 'doesn't work'.

Also, you can use the Export Waveforms to Spreadsheet File and this will create a file with the dt in a header and optionally, a timestamp column.

0 Kudos
Message 2 of 4
(2,977 Views)
Thanks for your suggestion. Previously when I tried the Get Waveform Time Array function, it showed that the waveform output from DAQMax Read cannot be connected to Get Waveform Time Array with the reason that resource is 1D waveform (1D, Nchan NSmaple). Now I tried to use Export Waveform to Spreadsheet File, but the resulting file showed that the time column is in long format (date/year/hour/min/sec). I just need the relative time in seconds. Though I could add a time column manually on the spreadsheet file, this is not so convenient when a lot of files need to be written.
0 Kudos
Message 3 of 4
(2,972 Views)

For relative time, you could use something like the code below to generate the array.

Message Edited by Dennis Knutson on 02-16-2007 02:11 PM

0 Kudos
Message 4 of 4
(2,969 Views)