11-11-2022 09:55 AM
Hello,
I am trying to make an spreadsheet test result more readable for users. It currently prints out as a very long row of data shown below.
Raw Data in a long rows
I would like to break up this data and make it appear in rows. Similar to this:
Easier to read in columns
Thanks.
11-11-2022 10:21 AM
You post in the LabVIEW forum, but all you show us are Excel images.
As a first step, you need to tell us how you generate the sheet you don't like. Are you using the report generation toolkit or are you just writing a tab delimited text file that you then import into excel.
If possible, show us some LabVIEW code! Thanks!
11-11-2022 11:18 AM
The file is first initialized here in step 2. Column header names are created and made into an array
Then the test results are saved here:
I was thinking of using the 'read spreadsheet vi' , then picking out subarrays which can be transposed.
11-11-2022 11:31 AM
Sorry, we don't do code images. Attach your VI instead.
(With few exceptions, images can't tell the whole story. What's in the other cases? What the file extension? What are typical values? What are the data structures?)
11-11-2022 09:29 PM
If you are using the Report Generation Toolkit, creating an Excel Worksheet that looks like this:
Easier to read in columns
This is not difficult. I did exactly this almost a decade ago (actually one Worksheet was organized by rows, and another, like the above, was organized by columns).
The following things are important for us to know in order to advise you how to proceed:
The difference between methods 3 and 4 have to do with how fast data comes in (use method 3 if fast) or how worried you are about a crash or error mid-way (use method 4, which only has a problem if the crash is during Excel I/O, not during data collection).
Bob Schor
P.S. -- I forgot to ask. Are you, by any chance, using an Excel Template? If so, you really need to attach the Template for us to examine. It becomes a lot more "interesting" (= difficult and challenging) if the Template changes!