LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I delete a blank line from an excel spreadsheet

I am currently using the code below to output an array of strings to an excel template.  I am getting a blank row to appear in between all my data sets.  Any Ideas on how to get rid of it.  I am new to Labview and have had no formal training.  Sorry if the program is poorly written or something just doesn't make any sense. Thanks in advance.

 
Code:
 
 
Output File:
 
0 Kudos
Message 1 of 6
(3,656 Views)

Hi gav21,

why do you write your data and read it directly after? Is the empty line already there? It would be better if you attach your images, because then it´s also possible to understand your thread in 5 years. Smiley Wink

Mike

0 Kudos
Message 2 of 6
(3,647 Views)

I did that so I can append my data to the output file.  And like I said I have had no training in Labview so im not exactly sure what im doing.  If you know of a better way of doing this i'm up for suggestions. Sorry copied the wrong URL here are the actual pics.

Code:

Output File:

0 Kudos
Message 3 of 6
(3,640 Views)
Hi gav21,
thanks for the images. Can you upload your vi? Create a probe on your wire between the insert into array function and the write to spreadsheet file function. Maybe you can see the empty line (right click on the wire and select probe).
Mike
0 Kudos
Message 4 of 6
(3,633 Views)

Mike,

I tried the probe and didnt see the blank space at the end. I have attached the vi.  I have a set of dynamic data coming in i believe its just 23 numbers and then I am adding a comment in front of that and then appending it to an excel template.  Thanks for the quick responses!

0 Kudos
Message 5 of 6
(3,624 Views)
Hi gav21,
do you really need to save the file? If you call the vi more then ones, then you get the empty line with your array conversion. See the attached example, it shows another way to get the data two a 2D array.
 
Mike
0 Kudos
Message 6 of 6
(3,585 Views)