|
|||||||||||||
07-25-2012 05:12 PM
How do I save the data in the portal to a CSV with channel units in the second row of the CSV?
Solved! Go to Solution.
07-25-2012 06:00 PM
Perhaps I should clarify a little. I am using diadem as a bridge between a custom MATLAB analysis tool and a AOP data store. I need to save the file as a tab-delimited text file with an extension of .xls. Using File->Save As with text file-Auto Detect, works as expected, except that I don't get the units of the data channels. I have tried to use excel export to save it as an xls, but my custom MATLAB tool does not like the file.
In case someone is going to suggest it, I have attempted to save my data as a *.mat file so MATLAB can open it's own format, but I get some odd behavior with the MATLAB variable names. I am investigating how to correct this, but in the mean time, I need a bridge to save the file as a tab-delimited text file.
Thanks.
07-26-2012 02:57 AM
I assume there is no way to add unit in second line.
Maybe access TDM/TDMS from Matlab may help you.
Greetings
Andreas
07-26-2012 07:52 AM
That's unfortunate... Diadem can read in units from a text file, but not write them? I believe I could do this programatically with txt file write commands, but I feel like I would be re-inventing the wheel.
Thanks for the link, I will read about getting MATLAB to open a TDM(S) file, but at that point, I think getting Diadem to export directly to a .mat file would probably be easier for me.
07-26-2012 09:51 AM - edited 07-26-2012 09:53 AM
Have a look at
http://forums.ni.com/t5/DIAdem/comma-as-decimal-se
I assume Brad saved your day. He attached an example http://forums.ni.com/ni/attachments/ni/60/2115/1/D
07-26-2012 12:56 PM
Not the first time Brad has provided a solution for my needs.
Thanks!
My Profile | Privacy |
Legal |
Contact NI
© 2011 National Instruments Corporation. All rights reserved. | E-Mail this Page
|
||

E-Mail this Page