LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to delay data coming from a file

Hi,
I have two files with some data and I need to compare the data coming from the file number one with the data coming from the file number two: I want to compare the first sample of the file number one with the first sample of the file number two, than the second sample of the file number one with the second sample of the file number two, etc.
If the sample number one of the file number one is grater than the sample number one of the file number two I want to lit a red light and so for the others comparison.

The problem is I don't know how to do this kind of comparison. In fact, as I run the VI, firstly the pc reads immediately all the data from both of the files.
Is there any way to read a sample at a time from a file?
Or if there is not, is there any way to pick up the first value of the signal produced after having read the whole file?

Please, please help me. I accept
any suggestion, I am desperate.

Giulia (
Italy)

0 Kudos
Message 1 of 2
(2,478 Views)
How much data do you have?

Depending on that you may be able to just use the Read from Spreadsheet File to read each file into separate arrays and then just wire the two arrays into the "greater than" function. This will give you an array of booleans that corresponds to each element in your dataset.

See attached...

-Saverio
Download All
0 Kudos
Message 2 of 2
(2,464 Views)