10-14-2009 04:11 PM
10-15-2009 11:24 AM
Hi Dave,
Congratulations, you are the first customer I've found who has actually used the "Name" property for something other than the Group or Channel Name. This is possible in LabVIEW but in none of the other NI application software packages that use TDMS (DIAdem, CVI, MeasurementStudio, SignalExpress). That label is available to be read in LabVIEW but is trapped behind the overloaded "Name" property in all the other NI application software packages. R&D knows about this and is working on ironing this out, but for the moment I can only advise you to not assign any property value to the "Name" property in LabVIEW.
But I'm actually suggesting that you rearrange the data you have in LabVIEW as an array of clusters of N elements into N separate arrays and send each of the N arrays toits own data channel with the TDMS Write.vi.
I think it would be best to continue this session in regular email. If you agree, please send me the VI that you use to write the TDMS file. I am willing to send you the VBScript that reorganizes your existing TDMS files, but I'd rather not do that until it works better. And ultimately, the VBScript will not find the label text in the overloaded "Name" property, so it will never be able to fully reorganize the existing TDMS files. We may need to write a LabVIEW program to do that instead.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
brad.turpin@ni.com
10-15-2009 12:09 PM
Hi Brad,
I'm kind of bound to use "name" in an annotation because that is what the typdef is defined as, by NI. I am not sure why it is named "name" and not "label", because that is what it really is.
I can experiment with writing these channels as you suggested.
But I am thinking, maybe I don't need to save the "position". I am imagining, since only a very small subset of the samples actually have an annotation label associated, my "name" channel array data would consist of mostly empty string elements, but the non-empty elements strings would have an entry at the same index in the array as the sample in the current channel it is associated with. Would storing the strings to a channel in this way be enough to display properly when viewing? It seems like it would (?). It would be pretty simple to post process the annotation array in this way, and store to another channel along with current and voltage using tdms write, with an annotation label entry and the index where it is associated with the data.
Thanks
Dave J.
10-16-2009 10:11 AM
Hi David,
Yes, it would be very simple and sufficient to create one label channel with the same number of array elements as you have in your data channels. It would be even more efficient to store a label channel and an index channel such that the label channel has no empty strings in it. This would be more efficient, but it would be slightly more complicated. I would be happy to go with your suggestion and show you how to get those labels on your DIAdem graph.
What's the longest data channel you expect to have?
Brad Turpin
DIAdem Product Support Engineer
National Instruments
10-16-2009 11:31 AM
Brad,
Do you mean the index and label channel would have as many elements as there are annotations, and the index channel would hold the index tha corresponding annoation is associated with (with the current channel). I can see how the latter would require some scripting, which is ok. And you are right that would be more efficient. I can actually adjust my code to do both methods temporarily to see what works better. Once I have a tdms file with this information maybe I can post it and you can have a look.
We are running a long duration test, up to 48 hours, so there can be 3 to 4 million samples, integrating at 50ms. There can be 300 to 400 annotations in this data as well.
Anyway I will work on making some small modifications to my code to store those channels and play around with that.
I only have 7 days left on my evaluation, is there the possibility of extending 30 days? I am still playing around with the databasing aspect as well, which if I can get some reporting done the way I want will be really good justification to my manager.
Thanks
David J.
10-16-2009 12:01 PM
Hi David,
Sounds like a plan. Try asking Otmar for the evaluation license extension-- he's the DIAdem Business Development Manager (otmar.foehner@ni.com).
Brad Turpin
DIAdem Product Support Engineer
National Instruments