04-24-2008 10:09 AM - edited 04-24-2008 10:10 AM
04-25-2008 10:02 AM
Hi diademi,
Nothing has changed in DIAdem since then, but you do have several options. First and foremost, you can save the data as a TDM file and use the freely downloadable TDM Excel Add-in to load the TDM file into Excel. This has the advantage that it's extremely fast but the disadvantage that it's completely inflexible as to where and how the written values show up in Excel.
http://zone.ni.com/devzone/cda/tut/p/id/4906
If that doesn't work for you, you can export the data channels into an ASCII file, as mentioned in the older link. This has the advantage that it's fast but the disadvantage that it's not very flexible as to where and how the written values show up in Excel.
Finally, you can export your data channels into an Excel file using ActiveX calls in a DIAdem VBScript. This has the advantage that it's flexible in where and how you write the values, but the disadvantage that it's comparatively slow, especially for large data sets.
Let me know what sounds most promising, and I'll send you code. Also, please confirm whether you're using Excell 2007 or an earlier version.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
04-28-2008 01:17 AM
04-28-2008 11:11 AM
Hi diademi,
I know that it is possible to manipulate an STP file, but I do not know of any place where it is documented, and I do not recommend that as an approach. Give the below-attached example application a try-- this uses the CSV Exporter of DIAdem and tricks it into adding a global header and column headers. The performance should be excellent, the only drawback is that the header content is passed through the DIAdem channel naming filter, so for example all "/" characters get changed to "\" characters.
Let me know what you think,
Brad Turpin
DIAdem Product Support Engineer
National Instruments
04-29-2008 12:54 AM
Hi Brad,
i tinkered me a little workaround. I made an stp file for 30 channels, that is the maximum number of channels that were produced while measurement, i guess ;-). Adding dummy channels as needed, making the excel-export and after that i use a OLE Connection to delete the dummy channels again. Not beautyful but it does what it should with one additional stp file and in time.
Thanks for your help!
diademi