LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

data processing loop is slow

I have some basic code I'm using to process data from tab-delimited text files (see image). When I run this with a smaller file (~10MB) it runs match faster than with a large file (~100MB). And it's not just that it takes less total time, each loop takes less time with a smaller file (I put a timer on it to see). I am wondering if I'm doing something fundamentally wrong with how I'm reading in this data and selecting the subset using this structure and if a small change would speed it up a lot. Any help is appreciated!

0 Kudos
Message 1 of 3
(1,186 Views)

I think it would be possible to speed up your code with some optimizations.

 

(But you'll have to post it to get more detailed help)

0 Kudos
Message 2 of 3
(1,182 Views)

@cactusman wrote:

I have some basic code I'm using to process data from tab-delimited text files (see image).


You did not even attach the image. But as has been said, the actual VI as well as a small datafile would really help in troubleshooting.

 

So far we don't even know your definition of "slow". That term can mean many different things and is just relative. Do you read the file at once or e.g. one line at a time? What kind of processing is involved? What's the final output?

0 Kudos
Message 3 of 3
(1,132 Views)