01-13-2012 06:10 PM - edited 01-13-2012 06:15 PM
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.
01-16-2012 05:50 PM
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.
01-16-2012 06:17 PM
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?
01-17-2012 10:20 AM
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
01-18-2012 09:04 AM
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:
Brad Turpin
DIAdem Product Support Engineer
National Instruments
01-18-2012 11:20 AM - edited 01-18-2012 11:22 AM
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.