Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 68979

Problems reading Comment from LVM

$
0
0

Hi,

I'd like to write some signals to a file, where I mark each phase in the execution with a tag (the user can select what tag to apply during the execution) . I am trying to use the feature of LabView's Write To Measurement File express VI that adds a comment to the current chunk of data (most of the code in the below snapshot is not really important, but I highlighted the part where I add the comment):

 

 

Capture2.PNG

 

Later I would like to read from the file and to retrieve the comment, so I am using again an express VI - this time Read from Measurement File:

 

Capture3.PNG

 

 

(when the phase as exctracted from the "Comment" column changes, I want to do something).

 

The problem is that the extracted comment is almost always an empty string, since this is the way Write To Measurement File does it - it writes it only once per chunk of data, as can be seen with the "happy" comment in the below example:

 

Untitled.png

 

 

 

 

So, unless I magically happen to read my data in exactly the same chunks as it was written, I most of the time get an empty Comment, which makes this feature pretty useless to me.

 

Anybody has any idea how to achive something like that?

 

Thanks in advance!


Viewing all articles
Browse latest Browse all 68979

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>