LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read From Measurement File reads only two data points?

Solved!
Go to solution

Hi all,

 

I think I'm having a very simple problem, but I can't solve it.  I need to open the attached LVM.  I'm using the attached vi.  When I run, the graph only displays two data points for each channel.  I think I must have the subVI configured incorrectly, but I've tried every option and none seem to do anything.  Please help!

 

-- Alright, update.  These forums have informed me that:

 

  • The attachment's continuity test with daq 1 continuity data.lvm content type (application/octet-stream) does not match its file extension and has been removed.

 

I've uploaded as a txt.  Can anyone explain what's happening here?  What does octet-stream mean?  I've attached a .png of the vi which wrote the file.

 

Thanks

0 Kudos
Message 1 of 4
(1,992 Views)

Try setting your Write for "One Header Only".

 

Right now you have it set as one header per segment and are thus breaking up each loop iteration with headers.

0 Kudos
Message 2 of 4
(1,959 Views)

That was part of the problem.  I changed the setting to "One header only", but it still creates two headers.  The only call to write measurement file is in the section of code in the png.

 

 

LabVIEW Measurement
Writer_Version 2
Reader_Version 2
Separator Tab
Decimal_Separator .
Multi_Headings Yes
X_Columns One
Time_Pref Absolute
Operator confroom
Date 2016/02/15
Time 13:16:12.57854461669921875
***End_of_Header***

Channels 7
Samples 2 2 2 2 2 2 2
Date 2019/01/22 2019/01/22 2019/01/22 2019/01/22 2019/01/22 2019/01/22 2019/01/22
Time 10:40:29.7047700002334926326 10:40:29.7047700002334926326 10:40:29.7047700002334926326 10:40:29.7047700002334926326 10:40:29.7047700002334926326 10:40:29.7047700002334926326 10:40:29.7047700002334926326
Y_Unit_Label Volts Volts Volts Volts Volts Volts Volts
X_Dimension Time Time Time Time Time Time Time
X0 0.0000000000000000E+0 0.0000000000000000E+0 0.0000000000000000E+0 0.0000000000000000E+0 0.0000000000000000E+0 0.0000000000000000E+0 0.0000000000000000E+0
Delta_X 0.100000 0.100000 0.100000 0.100000 0.100000 0.100000 0.100000
***End_of_Header***
X_Value Voltage_0 Voltage_1 Voltage_2 Voltage_3 Voltage_4 Voltage_5 Voltage_6 Comment
0.000000 -10.048995 -10.049495 -10.052518 -1.268145 -2.384186E-5 -3.576279E-6 -5.722046E-5
0.100000 -10.048995 -10.049495 -10.052518 -1.270195 -2.145767E-5 -2.384186E-6 -5.602837E-5
0.200000 -10.048995 -10.049495 -10.052518 -1.270132 -1.907349E-5 0.000000 -5.722046E-5

0 Kudos
Message 3 of 4
(1,939 Views)
Solution
Accepted by topic author ben_psc

I'm slowly learning. 

 

The second issue was because "Read From Measurement File" does not read the entire file, as I assumed.  It reads only a single measurement at a time (or more if you configure it so).  Since I don't know the exact size of the file, I need to put the whole thing in a while loop with stop linked to the EOF output.  See attached.

 

I knew it was something simple and dumb!  Thanks for the help all.

0 Kudos
Message 4 of 4
(1,925 Views)