LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to extract row and column from excel?

I don't get any error if I run the VI choosing as input file an Excel worksheet with the following structure:

        A         B          C

1      11      12        13

2      21      22         23

3      31      32         33

and select, for example, the following parameters:

Start row1 col1

end row2 col3

0 Kudos
Message 11 of 29
(2,314 Views)

I don't know what you mean when say "integrate data".

Do you want to concatenate them to obtain a unique graph or do you want to obtain 3 plots? 

0 Kudos
Message 12 of 29
(2,314 Views)

Hi Damiano,

  Exactly correct What I mean by integrating data is to concatenate it. Since in first iteration I will be geting the data of 2 column and in next iteration i will be getting data from 3 column and next I will be getting data form 5 column. Now, to pass this data to plot the graph I have to combine(concatenate) them. So how can I do this?

 

Mike.

0 Kudos
Message 13 of 29
(2,308 Views)

simply use the function "build array" in the array library.

remember to right-click on it once place in the block diagram and select the "Concatenate Inputs" options otherwhise you will concatenate row-wise and obtain a matrix instead of an array.

Let me know.

 

Message 14 of 29
(2,306 Views)

Hi Damiano,

   Yes it is working. Build array vi i am using and it is giving correct result. But their is one more problem I am getting. Since earlier I am using the .lvm file for storing the data, I am not aware of how to insert data in the in .csv file. I try to convert the .lvm file to .csv file by simply changing the extention. But the .csv file created from this contain dis formatted data. I also try to do this by providing .csv file insteaed of .lvm in my application but it is not writting into the file.Please let me know how to store data in .csv file.

 

Mike 

0 Kudos
Message 15 of 29
(2,300 Views)

I didn't understand what do you want to do. Do you want to store the selected data (the ones tou used to make the plot) in another text file? If so you could try to use the function "Write to spreadsheet file" in the file I/O menu and see if the result is OK for you. If not, what do you want to do exactly?

0 Kudos
Message 16 of 29
(2,295 Views)

I didn't understand what do you want to do. Do you want to store the selected data (the ones tou used to make the plot) in another text file? If so you could try to use the function "Write to spreadsheet file" in the file I/O menu and see if the result is OK for you. If not, what do you want to do exactly?

0 Kudos
Message 17 of 29
(2,296 Views)

Hi Damiano,

     No I do not want to store the data I have collected to plot the graph. What I have ask is very simple i.e How to write data (from which some data will be extracted for plotting graph) in .csv file?   The whole data will be in ,csv file.

 

Mike

0 Kudos
Message 18 of 29
(2,289 Views)
Very simple. Use the function "write to spreadsheet file" indicating comma (,) as delimiter and your array as input data. You will get a file that you can open with a text editor. You will find all the elements separated by comma
0 Kudos
Message 19 of 29
(2,288 Views)

Hi,

 I think u miss understand now. I have a file .lvm from which I want to extract data to plot graph. But since Get Excel Value vi does not accept the .lvm file I have to use .csv file. So how I can write data into .csv file. So that this .csv file will be input to the Get Excel Value vi to extract data to plot graph.

  Currently I am using Format Into File vi to log data in the .lvm file. If I want to use Get Excel Value vi this .lvm file will be of no use to me. That's why I want to use .csv file.

0 Kudos
Message 20 of 29
(2,281 Views)