05-26-2015 04:37 PM
Hello!
I've been trying to find a way to differentiate between different vectors on a Polar Plot.
I have a bunch of different waveforms, each with different phase and amplitude, and would like to either give them each their own colour, or alternatively, give them each a number label.
The picture plot VI gives me an option to draw in numbers on the graph, but with many vectors this could get messy fast.
Does anyone know how to specify the colours of each vector? I read about something to do with Pen/Draw options deep in the low levels of the VI, but I have no idea where to find it or how to manipulate it.
Any help is appreciated!
fr00tcrunch
05-26-2015 06:47 PM
Note that you can open the diagram of the "polar plot with point options" and inspect the code.
You can modify it and save it under a new name in your own user.lib. In particular, you could just duplicate the last VI in there (plot polar data) and use seperate data and color attributes for each instance (or put it in a FOR loop and iterate over an array data and colors, etc.).
05-27-2015 05:16 AM
Hi Altenbach!
I found the VI you mentioned, and made my own copy of polar plot with points options for modification.
I can see how it'd maybe be possible to go through my array of waveforms using a loop, but I don't see how to seperate different instances of vectors/colouring.
As far as I've understood it, the picture gets drawn all in one go once it knows which points it has to plot, so I'm not sure how to get it to do each point seperately.
I've attached a simple example VI where I want to draw two vectors in different colours along with a modified polar plot data VI. Could you explain in a bit more detail how I can implent seperate colouring of these two lines?
Thank you.
05-27-2015 06:44 AM
Hey,
This looks like a ready to use solution for your problem:
https://decibel.ni.com/content/docs/DOC-1067
This VI allows you to plot multiple polar plots on the same indicator with different colors
regards, Elli
05-27-2015 07:09 AM
Hey Elli,
Ill check it out! Seems promising. Just gotta figure out how to implement it into my current code 🙂
Thank you