11-08-2010 12:35 PM
Cool LabVIEW 2010 Features Part XI: Export Data to Clipboard (or Excel or DIAdem)
I thought I was done with my "Cool LabVIEW 2010 features" series a few weeks ago, but then I stumbled across this one today:
These new Export Data options are available on Waveform Charts, Waveform Graphs, Tables, and Arrays (including constants!). Choosing the Export Data To Excel or Export Data To DIAdem options will launch those apps with a new document containing the data. Choosing Export Data To Clipboard will simply copy the data to the clipboard, at which point you can perform a Paste operation in whatever app you wish (Excel, DIAdem, Notepad, Word, LabVIEW, etc.). Here are a few things I discovered when exploring this new feature:
11-08-2010 12:43 PM
Given the frequency with which I use this Quick Drop Shortcut:
http://forums.ni.com/t5/LabVIEW/QD-Shortcut-Paste-to-Array-Constant/m-p/1088366
perhaps we should see:
Cool LabVIEW 2012 Features Part LX: Import Data from Clipboard
I am assuming a fair number of cool features, and that very few of them will be in LV11.
11-08-2010 12:49 PM
Darren,
I did a quick check on the Mac. Only the first and last options (Export Data to Clipboard and Export Simplified Image...) are available. Export to Clipboard uses the same delimiters (\t Tab and \n Line Feed). It also has a Title line: "Time - Plot 0 Amplitude - Plot 0"
Thanks,
Lynn
11-09-2010 05:58 AM
This is cool.
Thanks for the Nugget.
Ohiofudu
CLD
11-09-2010 08:03 AM
Is there a way to save a picture of the graph programmatically? I was just thinking about how we test one of our products and if I could save the results of graph of part during test, this would be a helpful resource of part if it comes back to us under warranty.
11-09-2010 08:51 AM
You can use the Export Image method of the Waveform Chart/Graph to save a (simplified) image of it to disk:
Note that the Export Data feature I described earlier in this nugget is available through VI Server as well.
11-09-2010 08:51 AM
Sure. Use the Export image method of the graph control.
11-09-2010 09:25 AM
"Export Image" property? DO'H! Of course. In all my searching, I don't know how did I miss that one .... boy, is my face red.
11-09-2010 09:35 AM
@mysticfree wrote:
"Export Image" property? DO'H! Of course. In all my searching, I don't know how did I miss that one .... boy, is my face red.
Happens to the best of us!
Promise.
11-10-2010 07:01 PM - edited 11-10-2010 07:02 PM
Noticed that the export to Excel function does not work after the VI is built into an executable. Reported and found out that LabVIEW R&D was already looking into this.