DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

lvm channel comments

Solved!
Go to solution

When the text channel is pulled in, it also contains data where no comment was saved.  I want to remove those strings and use the remaining ones to annotate a graph at the same points in time when they were created.  It should correspond to points in the data.

 

Edit//  If you look at the data in Excel, you'll see a mostly empty comment column next to the values.  There are a couple of times when writing the lvm file I added a comment to the data.  I'd like those comments to be able to be used as comments in a graph with the data, and to have them placed in the correct place.

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

Hey Jordan,

 

Looks like you should be able to run a find and replace on the comment channel to remove all the NOVALUEs using the calculator and running a IIF()

Then by viewing the data in the report view, select the data and under Curve Parameters change the Display mode to Lines and Points. Select the Label Tab and checking the "From Channel" option select the Comment Channel to add in the comments on top of the curve.

 

BeauH
Applications Engineer
National Instruments
0 Kudos
Message 12 of 16
(1,724 Views)

Beau H,

 

Thanks for your help.  I've done what you've suggested, and it seems like it is close.  It places the three comments all on top of each other at the beginning of the curve.  What do I need to do to get them to be placed at their corresponding times?

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

Hi jordankuehn,

 

By "remove the NoValues" we meant "replace NoValues with empty strings".  If you remove all the NoValues from the Comment channel so that it always has 3 values "Start", "Middle", "Stop", then they will indeed display over top of each other at the X positions of the first 3 points.  If you leave them at their original rows, though, and just coerce the NoValues around them to empty strings, then they should display at the correct X positions.

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 14 of 16
(1,712 Views)
Solution
Accepted by topic author jordankuehn

Hi jordankuehn,

 

Here's a channel calculator expression that worked for me to strip out all those missing comments, which got turned into NoValues in DIAdem by the DataPlugin.

 

Ch("[1]/Comment") = IIF(Ch("[1]/Marker")=0, "", Ch("[1]/Comment"))

 Then if you use the resulting (cleaned) comment channel as the curve label, you get this:

1-18-2012 9-00-52 AM.png

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 15 of 16
(1,700 Views)

Brad and Beau,

 

Thank you very much.  This is exactly what I was looking for.  I had spent some time yesterday trying to get the calculator statement correct, but didn't think to use the marker channel as the true condition.

 

Is it possible to accept multiple posts as the solution?  I think there are two more I'd like to include if possible.  The data plugin was essential, and the steps to add the channel in as graph labels.

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