08-13-2020 07:21 AM
Hi to all of you out there, I'm fairly new to Labview and had a problem that hard to figure out.
I have acquired an Usb-6343 device, and I'm receiving voltage inputs from it. I am just using the voltage(continuous Input) code
that is provided as an example.
Right now I'm trying to figure out how to log time data with the voltage data on a tdms file. I'm thinking of a way using the 'tick' function, but I really haven't figured it out yet.
My final goal would be logging voltage inputs and time data on the same tdms file, but on different columns.
If anybody knows how to do this, it would be really helpful if you could kindly give me some advice.
Thank you all for reading this, and have a great day^^!
Solved! Go to Solution.
08-13-2020 08:03 AM
Hi,
This link might help : https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000PAUbSAO&l=en-US
You can wire the waveform output to write to measurement file VI and follow the steps in the link to log timestamps with data.
08-13-2020 08:07 AM
Assuming you are reading the data as a waveform, you can use the Waveform To Time Array function (dig around in the Waveform palette) to get an array to timestamps. You can then write this to the same group (but different channel) as your data.
08-13-2020 10:28 AM
If you are working with DBL array for your data instead of a waveform, you can build your own time array using timestamps and a shift register. Convert both the timestamps and DBL values to strings and build a 2D array. The TDMS file will accept the 2D array.
08-14-2020 07:29 AM
Oh my god, thank you all for giving me excellent advice.
I'll try everything you guys suggested me to do.
Thank you so much^^!!!