05-19-2009 01:23 PM
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
Solved! Go to Solution.
05-19-2009 01:33 PM
- 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.
05-19-2009 03:53 PM - edited 05-19-2009 03:54 PM
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
05-19-2009 04:02 PM
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.