LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to append an Excel worksheet

Solved!
Go to solution

When using the Append Table to Report vi (Functions Palette>>Programming>>Report Generation>>Append Table to Report.vi) you wire a string constant to specify the point in which excel will insert data (MS Office parameters). It is fairly straight forward, just set the column and row numbers. But, how would you configure it to accommodate a mathematical location. In other words, for example, at the first iteration insert a three row table five rows down from the top and every iteration thereafter insertion in multiples of five????????

What I'm doing is building an excel worksheet from an x/y graph each time the graph is updated.

Message 1 of 7
(4,624 Views)
Solution
Accepted by Dennis_B.

Hey Dennis,

 

I am attaching a screenshot of a section of code that should do the trick.

National Instruments
RIO Embedded Hardware PSE

CompactRIO Developers Guide
Message 2 of 7
(4,579 Views)

Hi Andrew,

 

  Thanx for the code.  I'm kind of new to Labview, what sub vi did you use in the while loop?  I can't find it.

0 Kudos
Message 3 of 7
(4,533 Views)
I believe that VI is the Append Table to Spreadsheet VI.
Regards,

Jeremy_B

Applications Engineer
National Instruments
Message 4 of 7
(4,485 Views)

Hi Jeremy,

 

  I can't find this VI, can you tell me exactly where it is located, I'm using ver 8.6.  I'm starting to think our IT department did not load the entire developer suite on my PC.

 

Thanx,

 

Dennis

Message 5 of 7
(4,479 Views)
I think the VI may be from an older version of the toolkit, I don't seem to have the exact icon.  You can probably use the Append Table to Report VI.
Regards,

Jeremy_B

Applications Engineer
National Instruments
Message 6 of 7
(4,443 Views)

Hi Jeremy,

 

  I tried it and it works as advertised.  Thanx for the help.

 

Dennis

Message 7 of 7
(4,428 Views)