LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

To write an MS Excel File

 

 

Hi

 I am acquiring two sinusoidal signals continuously from a Daq card  and their values are stored in two different arrays. Basically i want to write the values of one sample of each sinusoidal signal after every 0.5 second in an MS Excel file.

 

In the MS Excel file, the display should be ike this

 

 SineWave 1  ( Samples)       SineWave 1  ( Samples)            Time

 

                  sample1                             sample1                   0.5

                  sample2                             sample2                   1.0

                  sample 3                            sample 3                  1.5

 


How can i do this ? Any help will be greatly appreciated.
 

0 Kudos
Message 1 of 3
(3,113 Views)

CVI ships with multiple sample programs for Excel.  From CVI, go to Help >> Find Examples, then click on the Search tab, and enter Excel.

0 Kudos
Message 2 of 3
(3,110 Views)

Or if you want a extremely simple solution just write out your data in comma separated variable format (just has commas between the fields) and name the file with the .csv extension.  Excel will load the file in the format you are looking for.

 value1, value2, ...  use a carriage return and line feed to start a new line.

0 Kudos
Message 3 of 3
(3,099 Views)