From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to display spectral lines in color band

Hi Shane, just wonder if you are home yet.  I was trying the picture control for the past few days but didn't get anything positive.Smiley Sad  I apologize if you bother your vacation.

0 Kudos
Message 11 of 22
(2,563 Views)

No, no problem.  I've been home since but I'm very busy at the moment.  I'll try to get something posted soon.  Sorry for the delay.

 

Shane

0 Kudos
Message 12 of 22
(2,547 Views)

Hello Jack and Shane,

 

Do you mind sharing your code, or the idea of doing it?  I am working on something very similar, but not spectral line related.

 

Thanks in advance!

0 Kudos
Message 13 of 22
(2,497 Views)

Could you post your example vi here? I also need to solve this problem.

0 Kudos
Message 14 of 22
(2,228 Views)

I try to make a example, see attached.

0 Kudos
Message 15 of 22
(2,214 Views)

Wow, 5 years ago I promised to deliver example code.   I don't have it on my current computer, I'd have to try to dig it up at home, it was written in LV for Macintosh version 8.2.1.

 

I'll have a look and see if I can find anything useful, I promise.  It'll only take me 3 years to respond this time..... Smiley Wink

0 Kudos
Message 16 of 22
(2,200 Views)

@ronke wrote:

I try to make a example, see attached.


There is nothing attached.

0 Kudos
Message 17 of 22
(2,187 Views)

@altenbach wrote:

@ronke wrote:

I try to make a example, see attached.


There is nothing attached.


Maybe he tried to make an example and failed? Smiley Frustrated

0 Kudos
Message 18 of 22
(2,182 Views)

newscreen126677991.png

 

 

0 Kudos
Message 19 of 22
(2,152 Views)

As far as I know, to create a color spectrum you need to create triplets of R-G-B values. Here's a simple example to create a PSEUDO color spectrum:

 

2015-05-08_pseudo-spectrum.png

 

 

If you want to create a real color spectrum the R:G:B Triplets should look like this instead:

 

 

 

 

http://www.efg2.com/Lab/ScienceAndEngineering/Spectra.htm

 

http://www.itp.uni-hannover.de/~zawischa/ITP/brutonsspectra.html

 

 

 

So, ronke what does your code behind the screenshot you posted look like?

 

 

Regards,
Alex

0 Kudos
Message 20 of 22
(2,123 Views)