LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cellecting and saving data into excel or CSV file spreadsheet

Solved!
Go to solution
The minus 50 and times 2 serve no purpose either as those calculations go nowhere.  You should put a wait statement inside your while loop so that the CPU doesn't run full speed polling those controls.
Message 11 of 20
(3,219 Views)
...had some extra time today so i fixed up your code and added some new features.
Message Edited by Hueter on 07-24-2009 02:25 PM
Message 12 of 20
(3,211 Views)

Dear Hueter,

Thank you so much for your great work! your program is lot more efficient than mine. I have made some slight changes in your program just for my work purpose. I just have one more question: is there any way I can use LabVIEW to put Smell 1, smell 2, smell 3, smell 4, smell 5 in one row and the numbers acquired in the second row. I have added True constant to put the data in a row in the exl sheet. However, all the smell numbers and data are in one row instead of two. I have dragged the acquired numbers to the the second row. therefore the variable coresponding to the smell are side by side. I was wondering if LabVIEW can automatically send the smell types in one row, and the numbers in the other. If you just run the attached VI and see the collected data in the exl spreadsheet,  i think you will be more clear what I want to know.

 

Thanks,

Samia  

0 Kudos
Message 13 of 20
(3,200 Views)
By adding the True constant to the transpose input, you changed the example that was posted. The example that was posted placed the smell names in one row and the values in another row. Undo your changes.
0 Kudos
Message 14 of 20
(3,197 Views)
Solution
Accepted by topic author alams

Check it out...

 

smell test.PNG

Message 15 of 20
(3,193 Views)

Sorry, I meant putting the smell numbers in one COLUMN, and the variables in anothe COLUMN.

having them in two rows is pretty messy and there is a higher chance of making mistake while analyzing.  

0 Kudos
Message 16 of 20
(3,192 Views)

THANK YOU EVERYONE FOR ALL THE HELP!

 

~Samia

0 Kudos
Message 17 of 20
(3,183 Views)

if you to put the header in one raw and the reading in the other raw, you simply change the comma delimiter to the default tab (/t), just leave the delimiter unwired you will have 5 headers in the cells A1,B1,C1,D1,...so on, and the reading will be in A2,B2,C2,....so on.

 

i hope this will help

 

regards

Aneece

0 Kudos
Message 18 of 20
(2,928 Views)

Hi everyone,

 

Could you please let me know if there is a way to collect 1D data into specific column of a spreadsheet (CSV file)? I would like it to appear not on the first column but on the 2nd or 3rd?

 

Thanking everyone in advance

0 Kudos
Message 19 of 20
(1,823 Views)

Hi eleorka,

 

as CSV is just a textfile (with some fancy data separation) you have to include those empty columns before your own data...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 20 of 20
(1,819 Views)