LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Darren's Weekly Nugget 11/08/2010

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:

 

export_data.png

 

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:

 

  • On Windows, the columns are tab (\t) delimited, and the rows are line feed (\n) delimited.  I didn't check other platforms.
  • When using this feature with the Table control, it works best if you deselect Advanced > Show Selection on the table before exporting.  Otherwise, you have to select (i.e. highlight) the data you want to export in the table.  It seems to me that most of the time I'd want to export the entire contents of my table.
Message 1 of 12
(9,238 Views)

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. Smiley Wink

 

Message 2 of 12
(9,225 Views)

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

Message 3 of 12
(9,204 Views)

This is cool.

 

Thanks for the Nugget.

 

Ohiofudu

CLD

Certified LabVIEW Architect.
Ohiofudu Israel

0 Kudos
Message 4 of 12
(9,057 Views)

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.

 

 

 

0 Kudos
Message 5 of 12
(9,018 Views)

You can use the Export Image method of the Waveform Chart/Graph to save a (simplified) image of it to disk:

 

export_image.png

 

Note that the Export Data feature I described earlier in this nugget is available through VI Server as well.

Message 6 of 12
(8,994 Views)

Sure.  Use the Export image method of the graph control.

saveGraphImage.png


Paul
Message 7 of 12
(8,993 Views)

"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.  

0 Kudos
Message 8 of 12
(8,967 Views)

 


@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.

Smiley Tongue


Paul
0 Kudos
Message 9 of 12
(8,954 Views)

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.

0 Kudos
Message 10 of 12
(8,829 Views)