LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Formatting data for writing to spreadsheet

i am programming some instruments to do automation, now i want to write the data of every instrument e.g values i am programming and the values i am reading back , i want to write all this data to excel sheet , what is required is heading( name of every instrument) should come to the 1st row, and data corresponding to every instrument should come below that instrument heading only.

 

i htried to do this but data is not coming as expected 

 

below i am attaching the vi, i am attaching the whole project because there are lotsubvi's, please open the Main new vi in front end folder, it contains the code 

0 Kudos
Message 1 of 11
(2,858 Views)

Use TDMS file format It's a Lot better option.Read the attached links.This might help you.

 

https://www.ni.com/en/support/documentation/supplemental/07/tdms-file-format-internal-structure.html

0 Kudos
Message 2 of 11
(2,831 Views)

Run the VI and let me know whether this helps you.

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 3 of 11
(2,825 Views)

Thanks kasureloaded and Ranjeet singh for the reply,

 

Kasureloaded

 

i will study this TDMS format and will try to implement this in the program,

 

Ranjeet Singh

 

i am not getting what is ther location of the file that is getting formed 

 

 

 

0 Kudos
Message 4 of 11
(2,818 Views)

Ranjeet singh,

 

i got it i need to give path at template location. 

0 Kudos
Message 5 of 11
(2,815 Views)

The excel is not saved anywhere, you need to store it...It can be implented in another way.Just play with boolean at second last VIs used there

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 6 of 11
(2,812 Views)

Do i need to add one ,more vi to save data to file i tried by changing those boolean values but nothing is happpening

0 Kudos
Message 7 of 11
(2,802 Views)

That boolean will only change the excel window behavior. 

 

What else you are looking for Ritu?

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 8 of 11
(2,795 Views)

i want to save that file to a prticular location and i am not getting how to do thois

0 Kudos
Message 9 of 11
(2,792 Views)

Then the problem is old data will be replaced with new one..this is what you want?

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 10 of 11
(2,788 Views)