LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read two columns of data from a TDMS file.

Solved!
Go to solution

Data image shown and data file attached.

 

TestNV.jpg

 

Thanks,

 

Pete

0 Kudos
Message 11 of 14
(830 Views)

NaN (Not a Number) is recognized in arrays of numbers in LabVIEW.  So you could try to change the way the data are saved.

 

Otherwise,  once you have gotten the 1D array from the channel use the array subset vi.  Wire a 1 into the index terminal and leave the length terminal blank.

 

 

0 Kudos
Message 12 of 14
(825 Views)

Hi,

 

I am priya. I am also facing the same problem. I need to fetch the data from two encoder. First encoder reading is in the 1st and 2nd column and second encoder reading is in 3rd and 4th column. I used the same process that you used to solve the pervious one, But it showing some error. Can you please help me find the mistake.? I attached my VI with this. 

 

Thanks,

PriyaSmiley Happy

0 Kudos
Message 13 of 14
(726 Views)

Hi there,

 

Thanks for joining the forums.  As this thread is a couple of years old I would recommend creating a new one on the LabVIEW board.

 

There are a number of issues on the VI which you posted.  The auto-indexing tunnel which you have wired the channel names to will pull a single string into your for loop on each iteration.  So at this instance we would not use the Index Array function to pull specific names.  Perhaps you should pull the data from your file first and then analyse:

 

Ex.png


Regards,

Peter D

0 Kudos
Message 14 of 14
(713 Views)