LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading from a multi-segment measurement file

Hello!

 

I am writing a save/load section for a Labview program.  I write a few scalar parameters in the first segment of a measurement fil, then I write a few arrays of data. While loading, normally I want to read the  pareameters first, and then read the data arrays.

 

The text file has correctly two segemnets with the data. However, when rading the lvm file, it reads the first segment again in the second reading. I have played with Reset options but I could not fix it. I have attached a word file with both save and load block diagrams. Am I doing this right?

 

Also a second issue is that I want to save two-dimensional arrays, but when it reads the file, each column is separated in the output signals.

 

Thank you,

-- Reza 

0 Kudos
Message 1 of 16
(3,964 Views)

Hi Reza,

 

I have been able to reproduce what you are seeing.  I am looking into this further and will let you know what I find out.  Thanks for your question!

 

Kristen H.

0 Kudos
Message 2 of 16
(3,945 Views)

Thank you Kristen. Looking forward to your answer to this problem.

 

-- Reza

0 Kudos
Message 3 of 16
(3,924 Views)

Hi rayt,

 

can you upload the pictures directly instead of hiding them in some proprietary file formats?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 16
(3,922 Views)
Here you go...
Download All
0 Kudos
Message 5 of 16
(3,910 Views)

Hi rayt,

 

I see only locals and express vis -I will stay away from this  :smileysad:

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 16
(3,902 Views)
Do you mean that somebody else will look into this problem?
0 Kudos
Message 7 of 16
(3,886 Views)

Hi Reza,

 

I believe this to be a bug and have reported it to R&D.  However, for a workaround, do not include headers in your LVM file or use TDMS file type instead. 

 

Kristen H.

0 Kudos
Message 8 of 16
(3,879 Views)

Thank you Kristen. I tried binary tdms type as well, the same problem happens there (reading the first segment again). It may be helpful to know that TDMS fileviewer shows that the file has been save correctly.

 

-- Reza

0 Kudos
Message 9 of 16
(3,853 Views)

Hi Reza, 

 

I was able to plot both signals when I configured my TDMS file to have only one header.  I'm guessing the one header per section issue is related to the LVM header issue.  I will file another bug report to get that corrected.  Sorry about the inconvenience.

 

 Kristen H.

0 Kudos
Message 10 of 16
(3,828 Views)