01-30-2020 04:59 AM
Hello Friends,
please suggest me how to save data into different columns. I have attached two figures to save data. In this vi, the data was saved in different rows (first one) but I want to save it in different columns (second one).
Developed vi is attached below for reference
I am a beginner in LabVIEW, so don't mind for any childish question.
Thank you
01-30-2020 05:34 AM
01-30-2020 05:37 AM
A Spreadsheet file is a text file, where rows are defined by lines of text (i.e. a <New Line> is inserted into the text string where the line ends) and columns are defined by delimiters (the LabVIEW default being a <tab>, another common delimiter being a comma, which matches the ".csv" extension, for "comma-separated values".
So to have your Rows become Columns, the easiest way is to have all the data in an array (which has rows and columns) and interchange the Rows and Columns. This operation is called a "transpose", and there is an Array function, "Transpose 1D Array", that will do it. Give it a try.
Bob Schor
01-30-2020 05:46 AM
Hi Rajesh,
@Rajesh10 wrote:
The expected format is not possible by writing single columns - because of the reason explained by Bob.
Two options:
Anyway: whis is basic array handling you should have learned by taking the Training resources offered for free. And it is basic knowledge about CSV file formatting…