LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read from measurement file problem

Hi all,
I am using the "Read from Measurement File" VI that is built into LV8. I am reading in a .lvm file consisting of 2 columns. I cannot seem to figure out how to index each column. When tested using a a single column data file, I am able to use the index array vi to  access the data successfully. The problem occurs when I have 2 columns. To get around this problem I split my initial data file into 2 single column data file, but I would prefer not having to do this. Is there anyway to avoid this?
When I read the 2D file into an array I can only index the data located in the 1st row 1st col and the data in the last row 2nd col.
The array size function results in the value "2" yet each column has 201 entries.
0 Kudos
Message 1 of 5
(2,833 Views)
Look at attached vi's
 
First, create a sample LVM using 'Write to LVM.vi" program, where I am writing 2 simulated signals
 
Then read that LVM file using 'To Read LVM.vi" program. see how I have done DDT to 2D scalar conversion and incex array operation to extract each signal
 
Verify and if you are missing out something in your code.
 
Hope this helps,
 
Regards,
Dev
0 Kudos
Message 2 of 5
(2,812 Views)
 
Download All
0 Kudos
Message 3 of 5
(2,811 Views)
 
Download All
0 Kudos
Message 4 of 5
(2,812 Views)
Thanks for your help. I've got it working now.
0 Kudos
Message 5 of 5
(2,794 Views)