LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

record data continuously using TDMS

Solved!
Go to solution

Hello,

I am new to LabView and have looked at some ways for recording analog data using TDMS. I have tried implementing it in my code but have found that when I open the created files with excel I get gibberish and no data values. I am attaching a picture of the portion of my code that is responsible for this.

DAQ Assistant calls the values from two analog voltage inputs (two photodetectors). The signals are displayed just fine and continuously via the Waveform Graph but I want to record these values as well. I tried using Write to Spreedsheet but only a certain value (100 samples) were recorded at at time. I want ALL values to be recorded from both analog inputs from the time I click START to the time I click STOP. 

 

Thank you!

Alfredo

Alfredo
0 Kudos
Message 1 of 4
(3,828 Views)

- Have you tried the Excel Add-In Tool?

- It doesn't seem like you are doing continuous acquisition. Are you calling this VI as a subVI? If so, you would need to append the data to the file; so use 'open' instead of using 'create'. I would open up the Example Finder (Help -> Find Examples) and search for 'tdms' to find some examples to understand how it works.

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
Message 2 of 4
(3,826 Views)

Adnan,

I have downloaded the Excel Add-In Tool as you suggested and am now able to view the data properly. Thank you. However, my problem persists. Only 100 samples are recorded. I have attached a picture of the DAQ Assistant. As you can see, the "aquisition mode" is set to Continuous but the "samples to read" is set to 100. What should I do to record the voltage values as they come in real time?

 

To answer your previous question: this is not a subVI. It is part of a much larger VI code.

 

Thank you!

Alfredo

Message Edited by AlfredoT on 05-19-2009 03:54 PM
Alfredo
0 Kudos
Message 3 of 4
(3,807 Views)
Solution
Accepted by topic author AlfredoT

So, I would assume it's placed in a loop. Well, you are still 'creating' a TDMS file on every iteration of the loop instead of using 'open and create' at TDMS Open and appending data. Again, have a look at my instructions to search in the Example Finder. Post back if you have additional questions.

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 4 of 4
(3,803 Views)