11-19-2012 10:16 AM
I am trying to read from an excel R.CSV format file all the data at once. Then I would like to write that same data to another file call sample test1.csv . When the program is writing to the new file i want it to write line by line down the rows not the whole thing at once. I would also like the ability to Append the row by row or over write the data every 2-4 seconds and just have 1 row. I have attached a file and the excel data i would like to read.
Solved! Go to Solution.
11-19-2012 10:24 AM
Attached file
11-20-2012 11:01 AM
E,
Can you explain you specific question in a little more detail? I don't understand what you are asking. Thanks.
11-20-2012 01:46 PM
11-20-2012 01:50 PM
11-20-2012 03:29 PM
E,
Below are links to the LabVIEW help regarding the Read From Spreadsheet File VI and the Write to Spreadsheet File VI. These documents explain how to use these functions and what all of the inputs and outputs do. In a quick review of the code that you posted, I noticed that you had a number of structures around the Read VI, including a queue and several while loops. I do not believe these structures are necessary for your application. Simply use the VI once instead of calling it multiple times. It will read the entire file in when you call it. Also, when you use the Write VI if you wire a false to the append to file? input then it will automatically overwrite for you. So just write a 1D array to the file and overwrite what's already there to accomplish what you are wanting to do. I hope this helps.
11-20-2012 09:18 PM
11-22-2012 11:34 AM
These Links arent working.
11-22-2012 01:00 PM - edited 11-22-2012 01:01 PM
You are correct. The links are not good.
In the meantime, you may want to have a look at this link. THere is a wealth of knowedge in there.
http://forums.ni.com/t5/BreakPoint/Excel-Board/td-p/379682
BTW, you may want to unmark your post as being solved. It may cause people to skip over further posts.
11-26-2012 11:48 AM
Sorry about that. Here they are again.
Read From Spreadsheet File
http://zone.ni.com/reference/en-XX/help/371361J-01/glang/read_from_spreadsheet_file/
Write to Spreadsheet File
http://zone.ni.com/reference/en-XX/help/371361J-01/glang/write_to_spreadsheet_file/