DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

lvm channel comments

Solved!
Go to solution

Searched a bit, but couldn't find an answer.  When using the express VI "Write to Measurement File" and adding comments to the data it shows up just fine in excel (as an additional column next to the data channels), but I do not readily see a way to display them in Diadem.  Any suggestions?

 

Edit//

When opening in Diadem, I right click on the file and load data.  Perhaps this is the issue, though I should think a .lvm file should open just fine in an NI product.

The Colex Group
Lead Software Engineer
Certified LabVIEW Developer
0 Kudos
Message 1 of 16
(5,314 Views)

The comment you add is used as group name.

 

X_Value	50 Hz Signal	Square	Filtered signal	Comment
0	-1.348572	4.412079	1.071472	My Group
0.001	-2.164612	4.412842	1.639557	
0.002	-2.826843	4.413452	2.098999	

 For example a file with that content would create a group

 

My Group

 

in DIAdem with the channels X_Value, 50 Hz Signal, Square, Filter signal.

0 Kudos
Message 2 of 16
(5,299 Views)

That does not appear to be the case for the file that I am loading in.  It differs from your example in two ways though.  There are multiple comments and the first one does not appear in the first row.  I'll play around with it some, but do I need to do anything special to make those groups appear?

 

Edit//

After inserting a comment in the first row, I get the results you describe.  However, I do not see how to access additional comments in the file.

The Colex Group
Lead Software Engineer
Certified LabVIEW Developer
0 Kudos
Message 3 of 16
(5,288 Views)

Hi jordankuehn,

 

It may make sense to create a custom DataPlugin to load your LVM files.  Would you like those comments to show up as isolated values in an additional string channel?

 

If you can post or email several example files, we can probably send you back a DataPlugin that loads them with all comments available.  What would you like to do with the comments, exactly?

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

brad.turpin@ni.com

0 Kudos
Message 4 of 16
(5,278 Views)

There are two possible paths.  First the data could be seperated into groups by the comment, as it appears Diadem wants to do out of the box.  The other would be to automatically annotate visually displayed data on a graph.  If this sounds reasonable I can produce some sample files, but it's really nothing different than the standard lvm file generated in labview.

The Colex Group
Lead Software Engineer
Certified LabVIEW Developer
0 Kudos
Message 5 of 16
(5,261 Views)

Hi jordankuehn,

 

Here is a an alternative LVM DataPlugin that parses the "Comment" column as a string channel.  You will need to disable the regular LVM DataPlugin or choose to load the file with the "Open with..." right-click menu in the NAVIGATOR.  This LVM2 DataPlugin works on my computer with the default LVM file I get using the "Write to Measurement File.vi" in LabVIEW.

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 6 of 16
(5,256 Views)

@Brad Turpin wrote:

Hi jordankuehn,

 

Here is a an alternative LVM DataPlugin that parses the "Comment" column as a string channel.  You will need to disable the regular LVM DataPlugin or choose to load the file with the "Open with..." right-click menu in the NAVIGATOR.  This LVM2 DataPlugin works on my computer with the default LVM file I get using the "Write to Measurement File.vi" in LabVIEW.

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments


Brad,

 

Thanks for the plugin, sorry it's been so long for me to follow up.  I have tried it out and it does work as advertised, it brings in the comment channel.  I worked with it and removed the samples with no entry, and generated a time channel to match the remaining entries.  Ideally I'd like to take this channel and insert it into a graph in the correct locations.  I've experienced difficulty with this.  If I use the unaltered channel (with all the no entries) it overwhelms the graph, but they all appear.  With the channel containing only the values that have meaningful data, I cannot seem to add it as either a data channel or as comments. 

 

I'm using Diadem 2011. 

The Colex Group
Lead Software Engineer
Certified LabVIEW Developer
0 Kudos
Message 7 of 16
(5,158 Views)

Hi jordankuehn,

 

Your described process has me a little confused.  It sounds like you want to delete selected rows which have empty comments/values, then plot XY curves on a graph with time on the X axis.  It may be that you are removing rows from some channels and not from others.  It may be that you are configuring the curves with only the Y channel, plotted vs. array index.

 

Could you please submit a sample data file for me to look at to get a better idea what you mean?

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 8 of 16
(5,142 Views)

Brad,

 

This sample file should give you an idea.  Let me know if it requires further clarification.  There are just a couple channels of dummy data, and comments that I've added during the 'realtime' creation of the file.  The comments will serve to annotate the data when post-processing/displaying.

 

The forums will not allow a .lvm attachment (crazy? yes.), so I've renamed it to a .txt. Don't forget to change it back.

 

Thanks for your assistance.  Hopefully others will benefit from this dialog as well.

The Colex Group
Lead Software Engineer
Certified LabVIEW Developer
0 Kudos
Message 9 of 16
(5,124 Views)

Hey Jordan,

I have pulled in your file into DIAdem with using the dataPlugIn that Brad posted, I am able view the data but could you clarify what you are trying to do, from what I understand you are trying to remove empty data. Is that data that just contains 0's or cells that contain comments?

BeauH
Applications Engineer
National Instruments
0 Kudos
Message 10 of 16
(5,108 Views)