01-22-2012 08:45 PM
Hi,
I am using a 6070E DAQ card to read the output of a sensor. I am having trouble exporting the data from the labview program to DIAdem.
When my vi stops running, it displays the information on a waveform graph. I right click on the waveform graph and select "Export data to DIAdem", it opens DIAdem but randomly sets some of the values to zero, both the time and the actual readings... Sometimes it's only one or two of the data points, but sometimes (like in the picture), it completely distorts the data. I've attached the vi and also an image of how it exports to DIAdem... The chart should be showing 10 cycles of a 10 Hz sine wave.
Is there anything I can do?
Thanks in advance.
Solved! Go to Solution.
01-23-2012 09:54 AM
Hi sdavoudi,
This is a bug in the graph export to DIAdem function of LabVIEW 2010-- it's fixed in LabVIEW 2011. I can send you a replacement VI that will help for LabVIEW 2010, but the better solution would be to upgrade to LabVIEW 2011. Also, if you want this to happen automatically, you should consider using the "DIAdem Report.vi" in the Express Output palette.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
01-23-2012 10:00 AM
Hi Brad,
I am using the Labview provided by the school (University of Toronto) and it's 2010 for now. Once they buy the newer version, I will definitely upgrade. So in the meantime, I would greatly appreciate it if you could send me a replacement VI that doesn't have this problem.
Thank you so much.
Kind regards,
Sadegh
01-23-2012 10:11 AM
Hi Sadegh -
I just wanted to mention as an addendum to Brad's comment that if you want to export to happen automatically, another option is to use an Invoke Node to invoke the "Export to DIAdem" method of the chart/graph - another super easy way to achieve the functionality.
Don't forget that for the greatest flexibility, consider saving your data to file (e.g. TDMS) and then loading it with DIAdem (you can do all of this programmatically, too). This will allow you to save your raw data, invoke custom post-processing, apply your own customized report templates, etc. Just one more option to consider. Let us know how we can help after Brad posts his fixed VI.
01-25-2012 04:46 PM
Hi Sadegh,
It's been about a year since I looked into this last, but I believe all you need to do is to shut down LabVIEW, use the attached VI file to replace the following existing file on your hard drive, then restart LabVIEW.
...\LabVIEW 2010\vi.lib\ExportToExcel\exportToDIAdem.vi
Let me know if that doesn't do it,
Brad Turpin
DIAdem Product Support Engineer
National Instruments
01-26-2012 10:56 AM
Hi Brad,
Thanks for the file. I did what you said and it works great.
The only glitch is that if you try to export the data from the waveform chart for a few times, it will mess get messed up again. The solution is to close Labview and open it again.
Thanks a lot for the help. I really appreciate it.