02-02-2015 06:17 PM
Hello,
I tried searching for this issue but could not find a thread that matched. I am using a NI USB-6218 DAQ to monitor several analog channels and having some trouble with the logging feature. I am going off an example I found and everything works fine except for the timestamp. When I open the TDMS file, I see the channels I selected and their voltages but no corresponding time. The timestamp shows up in Charts, Graphs and Numeric Indicators in the VI itself but not the spreadsheet with the monitored voltages in the task. The time is also left blank in the main Excel spreadsheet (task is the second sheet in the file).
Could anyone offer a suggestion on why this is happening?
Hope to hear from you,
Yusif Nurizade
Solved! Go to Solution.
02-02-2015 08:37 PM
02-03-2015 09:57 AM
Dennis,
Thank you for the reply and please forgive me for not being more specific.
The example I initially used was Voltage - Continuous Input.vi. I am not sure how the time is being generated - I can see the correct time in my graphs/charts and when I create an indicator for the waveform. The same time does not show up on the TDMS file and I don't see the control in the logging subVI that would enable it.
The forum won't let me upload the TDMS file itself or a zip containing it. I've saved it as an Excel file and uploaded it with the VI.
Best,
Yusif Nurizade
02-03-2015 10:00 AM
Nope, the timestamps are not saved. In the metadata for the group should be a start time (T0) and a sample rate (dt). From those, the time of each sample can be calculated.
02-03-2015 10:08 AM
crossrulz,
Thank you for the reply.
Could you please clarify whether you mean the time stamps are not saved in my application or for the DAQmx logging subVI as a whole? In either case, I am curious why the graph, for example, displayed the correct time during operation. Is there a way to have the time stamp automatically included as a column next to the channel readings or will I have to generate it myself every time?
Best,
Yusf Nurizade
02-03-2015 10:18 AM
02-03-2015 10:19 AM
Dennis,
I need the timestamps in the column to the right of the channel readings from the task. In my file, the task is named _unnamedTask<C>.
Is there a way I can do this automatically instead of having to add it myself?
Best,
Yusif Nurizade
02-03-2015 10:44 AM
02-03-2015 12:26 PM
@Dennis_Knutson wrote:
You would have to manually add your calculated timestamps if you want them displayed in Excel. I've never had the need.
I have never needed to either for waveform data. I add in the timestamps for signals that are not consistantly sampled. like data from an instrument on a serial port.
02-03-2015 07:43 PM