05-02-2012 12:50 PM
I am currently working on writing a program to replace one that we currently use (it runs on MS DOS... so... yeah). Attached is a printout of the graph that the old program creates. There are currently 2 things that are present in the charts created by the old version of the program that I am not sure how to replicate in LabVIEW.
1st is the legend that appears in the top-left corner. I have string constants and controls that allow the user to input all of that data, and it is currently saved with the data as text, but I don't know how to make a legend like the one shown appear on the LabVIEW graphs, and it would be nice to include it.
2nd has to do with the y-axis. In the attached chart, there are 3 seperate plots that appear on the same chart, labled X, Y, and Z, and although it is all on the same graph, the y-axis is divided into 3 segments of +/- 5 dB. I have worked out (with some help from these forums) how to make it so that the user can choose whether he wants all 3 on the same chart or not, and how to offset the values on the chart, I just don't know how to get the y-axis to reflect that there are 3 graphs on 3 seperate axis.
The last thing I need to keep in mind for #2 is that there won't always be 3 runs on the same chart, sometimes it will only be a single axis that I need to test, so only 1 plot will be generated.
05-03-2012 08:04 AM - edited 05-03-2012 08:05 AM
The y-axis thing I wasn't sure if LabVIEW would be able to do or not, but it would really suprise me if LabVIEW won't let me put a caption like the one attached in the last post on an XY graph. I've been playing around with property nodes and I can't find anything that takes arrays as a data source. I attached a pic of how I thought it would be able to work. Worst case: It looks like I should be able to take the most important string inputs, put them all into a single string (not an array, just seperated by commas) and add a single line of text to the graph (though I am not sure if that caption will also be saved to a file if I use a get image property node).
Is there seriously no way to add a useful caption/label to my XY graph?
05-03-2012 08:35 AM
You can create a custom XY Graph. Place the caption at the top left of the graph display and make the caption background white (or any color you want). You can create a small subVI that will format your array input into the caption string. The caption will be saved to a file. (haven't tested it but when you right-click and export simplified image the caption is part of the image).
Ben64
05-03-2012 08:37 AM
Hey, thanks Ben, but could you repost that in LabVIEW 8.5?
05-03-2012 08:38 AM
05-03-2012 08:40 AM
Awesome, thanks so much.