LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

sending data records to Excel, but into table 2

At the moment I am writing a CVI-application and I want to send data records into an Excel-sheet.
For doing this, I use an exampleprogram from CVI, the name is excel97dem.c. This program allows me to transfer data into table 1, but I also have to transfer data into table 2.
How have I to change the example to transfer data into table 2 ?
0 Kudos
Message 1 of 2
(3,057 Views)
When you say table 2, I assume you mean worksheet 2. If so, then you just need to get a handle to the other worksheet and read and write data using that handle instead of the handle to worksheet 1. You can get the handle of a worksheet with the SheetsItem function as seen on line 322. You would send in an item of 2 instead of one and store the new handle. Then write in the same way as in the WriteDataToExcel function, except starting with the other worksheet handle.

Best Regards,

Chris Matthews
Measurement Studio Support Manager
0 Kudos
Message 2 of 2
(3,057 Views)