LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Complex values plotted in HSL color space (wheel)

Dear Users,

 

I want to plot complex number using a HSL color space. It is sometimes called "a color wheel plotting", see http://en.wikipedia.org/wiki/File:Sin1perz.png as an example. Any ideas how this could be made in LV, please? (Other color spaces, such as Lab color space are fine, too... 🐵 )

 

Cheers,

0 Kudos
Message 1 of 9
(3,613 Views)

update: the phase [0, 2pi] of the cplx number shoudl be mapped to the HSV color and absolute value |cplx. number| is mapped to the the brightness (zeros=dark and infinity=maximum brightness).

0 Kudos
Message 2 of 9
(3,581 Views)

.

"If you weren't supposed to push it, it wouldn't be a button."
Message 3 of 9
(3,572 Views)

I would find this very useful but I get an error as follows:

missing semicolon

Error on line 6 is marked by a '#' character: "... = v; } else { h / =# 60; // sector 0 to"

 

Is something missing here?

 

Thanks,

 

James Duffin

0 Kudos
Message 4 of 9
(3,316 Views)
I don't get an error. Attached is the VI I derived it from.
"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 5 of 9
(3,297 Views)

Thanks for getting back to me on this problem.

I am missing your attachement however.

 

James Duffin

0 Kudos
Message 6 of 9
(3,271 Views)
Here it is.
"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 7 of 9
(3,258 Views)

3rd try.  Don't know why the attachment didn't go through before (I really did attach it).  This time I'm using a different browser.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 8 of 9
(3,250 Views)

Thank you very much.

I copied the formula node over to my vi and now my vi has no error.

Still couldn't find the difference however.

Anyway, I appreciate your help.

 

James Duffin 

0 Kudos
Message 9 of 9
(3,235 Views)