LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing line color on XY plot

This should be something really simple. I simple created a property node, set the active plot, and set the plot.color. What happens to some plots is the points change to my specified color and other stays as my background plot color which is white. I cant seem to get the line color to change with the point color. There are ways I can change it at run time, by right click on the plot and going into properties and setting line color in that tab.

What am I doing that I cant get this to work at runtime?

I attached the plot, just ignore all the missing VIs you should be able to see the problem.
0 Kudos
Message 1 of 3
(3,179 Views)
It works just fine here using LabVIEW 7.1. Could you do us a favor and make a mini demo, just containing the xy graph, some data for it, and the related property nodes to demonstrate your problem.

Overall comment on your VI:
Sorry, but I am absolutely horrified by your code. I cannot believe that you need all those property nodes, especially the signaling ones, they should be used very sparingly. (For example the FOR loops on top center and in the event called "clear all points" are just pumping hot air, repeating the same action and signaling (!!) every iteration.) It also just cannot be healthy if a single event calls tons of signaling properties, such as in the above mentioned event case. Then, in the timeout event, you are rewriting the plot la
bels and names every 10 ms. Do they really change that often???
Please let us help you in your overall program design. It will make a big difference in your future, more complex projects if certain common desing misconceptions are not propagated. I think entire sections of your program can be deleted without loss in functionality, the code can be stripped to <20% and the CPU usage can be reduce to <2% of the current situation. Just my wild guess.
The above is well meaning criticism, so don't take it personal. I am much harsher looking at my own early code from 8 years ago. 🙂 Good luck!
0 Kudos
Message 2 of 3
(3,178 Views)
This is my first attempt at a language like this. I would love more critism. I can post more or all of this project. I will look into what you are saying. Thank you so much.
0 Kudos
Message 3 of 3
(3,178 Views)