12-21-2012 09:29 AM
Hi,
I have a problem forcing my WaveformGraphs to have specific plot colors. I changed the properties many times: It comes back to another color when I restart. I tried the property node Plot Color with Active Plot : it says it cannot work (maybe I didn't do it well). I made the graphs type defs, changed their properties, made it their default value and then saved them. I need the 3 graphs to have the same plot colors because they're linked.
Do you have any advice for me?
Solved! Go to Solution.
12-21-2012 10:43 AM
The property node is the way to do this. "It cannot work" is not sufficient information for anyone to help you. Describe the error better or post your code.
12-21-2012 10:51 AM
You're right I wasn't precise.
It seems to be working only for the first plot. I took a printscreen of the error window for everybody to see what it is:
Do I have to put the name of the plot as an input? If yes, then why does the first plot change its color& As an input to plot color I put a color box and as an input for the active plot I put the i of the for loop in which data is treated.
12-21-2012 03:46 PM
Here's a way to do it. This will set the first 4 plot colors in each graph.
(Get your graph references and put them into an array for the input.)
steve
01-08-2013 04:27 PM
Sorry if it took that long for me to answer I was on vacation. I tried this way and it works, but I had the error code 1055: "Error 1055 occurred at Property Node in ... Possible reason(s): LabVIEW object reference is invalid."
I ignore the error and the result is good, maybe I should have done that way earlier.
Thank you
01-09-2013 03:15 AM
Glad to help!
It sounds like your array of references contains an invalid entry.
Here's a way to create the array of references:
To create the references - Right click in a graph terminal (or indicator) and select Create -> Reference.
steve
01-09-2013 10:30 AM
Thank you again for your help. This is how I did it and the error showed up. It works now even if I get the error message so I should not need to change it, even if this is not preferable to do such things.