12-06-2010 06:28 PM
Is there a method that allows a user to paste a spreadsheet snippet into a LV front panel table control? My client has specified LV2009SP1 and I have a lot of data (more than 4 cols by 100 rows) that I would really like to not retype.
12-06-2010 10:57 PM
Hi kc64,
This example should do what you want. All you have to do is change the 2D output array to a table control.
12-07-2010 08:25 AM
Thanks for your reply. This example actually does not address the method that I seek. Instead of pasting the data into the table, the example opens the Excel file and imports the data without ever using a front panel table control. Any other ideas?
12-07-2010 08:50 AM
kc64,
I do a lot of copy / paste and data interchange between Excel and LabVIEW. When you copy data from Excel, it will be TAB delimited array data in a spreadsheet string. This is easy to parse in LabVIEW using the spreadsheet string to array.vi. To paste to a table, read the clipboard string, parse the string to an array, and write to the value property of your table. See that attached 2010 vi and pictures.
-cb
06-27-2014 02:29 AM
Hi,
Many thanks for this solution. It works very well.
05-08-2019 03:57 PM
That solution works from word tables as well. Very handy.
Kudos for the neat trick.
10-10-2022 11:43 AM
Awesome solution even 12 years later!