LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reading selective data from .csv file using read from spreadsheet VI

Hi everyone...

           I have just started working on LabVIEW and I’m facing some issue..I have a .csv file containing 3 columns of readings. The total number of data points in each column is 125000.The data of my interest lies between reading numbers 50000 to 80000 of each column .if I try to read the entire .csv file using read from spreadsheet VI i get an error message saying memory is full, not enough memory to complete this operation. I know that you can extract a column or row and the number of readings you require after you read from the spreadsheet, using index arrays. Is it possible to select the column with the number of data points one wants at the initial stage itself, that is in the read from spreadsheet VI? If no is there any other method to solve this problem.

Thanks

0 Kudos
Message 1 of 10
(4,675 Views)

Dear Iki belle,

 

thank you so much for your post on our webforum.

 

You are reading byte for byte with the basic file I/O functions. So it is impossible to select a row and colum. You are able to start at a point in a file and read a number of bytes from that point. Please notice readcsv.vi for a demonstration of this.

What you want is included with the report generation toolkit; here you are able to create an excel sheet from your file and select a begin and end row / colum. I made an example; getcolumrow.vi, a picture is also included from this example. Please notice that you need the report generation toolkit for this.

 

Best regards,

 

Martijn S
Applications Engineer
NI Netherlands
0 Kudos
Message 2 of 10
(4,659 Views)
sorry i forgot to mention i'm using labVIEW 8.6
0 Kudos
Message 3 of 10
(4,643 Views)

thanks.

I will go through the block diagram in the image you have sent.

regards,

anne

0 Kudos
Message 4 of 10
(4,641 Views)

no problem, here the 8.6 versions of the VI's,

 

best regards,

Martijn S
Applications Engineer
NI Netherlands
0 Kudos
Message 5 of 10
(4,638 Views)

unfortunately i do not have the Report generation toolkit which includes the excel get data.vi you have included in your VI .

regards,

anne

0 Kudos
Message 6 of 10
(4,629 Views)

Dear Anne,

 

In most cases all software is delivered on our DVD's. So you are able to install the report generation toolkit, but only as a trial (if it isn't included in your labview license).

 

Best regards,

Martijn S
Applications Engineer
NI Netherlands
0 Kudos
Message 7 of 10
(4,624 Views)

Hi -

 

Is there any chance of posting this in v8.5?  I think this will solve a week long challenge for me.

 

Many thanks!

0 Kudos
Message 8 of 10
(3,980 Views)

You could also try posting the files to the Version Conversion Board.

 

Dave

Message 9 of 10
(3,971 Views)

Thank you Dave!  I had no idea that Board existed.

0 Kudos
Message 10 of 10
(3,962 Views)