10-20-2011 09:40 AM
I have no problem changing a normal graphs plot legend with a property node, but I'm trying to display three different sets of data on one graph. I tried doing it using a plot reference with the Plot Legend and using Caption Text. They should be settable when the VI is running, but the way I was trying to do it I got a reference error (1055 Reference Invalid). Setting either the Plot Legend or Caption Text would be acceptable if I could just figure it out.
I'm trying to display 32 spectrums, but only use 8 graphs and have the name of the particular channel change. Doing this without doing an FFT the channel name gets brought into the graph, but when I use the Power Spectrum VI I don't have the Spectrum Info wired into anything. So, I'm bringing my original channel name array over and trying to do an iteration to pick the correct plot reference and channel name.
I've extracted only the part of my code for this question, so hopefully it is easy to look at what I'm doing.
The first VI and SubVI are functional. The second SubVI is where I was attempting to change the Caption Text. I've tried other things too, but I just wanted to show one way I was attempting to do it.
Solved! Go to Solution.
10-20-2011 04:43 PM
I don't have the SV add on so I can't check out your main program. I looked at your sub vi and you're doing more code than you need to. Take a look at my example, I've put your 8 graphs into a cluster then used an array of references along with arrays for your chanel indecies. Maybe it can give you some ideas for your program.
10-20-2011 05:55 PM
Is the benefit of your code inside the flat sequence structure just to keep the number of icons on the block diagram down? I have always hated having an icon for every graph, so I can see how having them in a cluster saves space. Are there other benefits to that particular part of the code?
Also, if I wanted to do an index array on the array of strings from the indexes picked and bring that into the Caption text is there something similiar on the string pallet to an index array?
10-20-2011 05:57 PM
Attached VI: