LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multi color led

    Hello everyone,

I have a vi that will do a multi color led the problem is how do i save it as a *.ctl ?
0 Kudos
Message 1 of 3
(4,126 Views)

a ctl cannot have any code. With some effort, you could make it an xcontrol thought.

A better choice would be the use of a colorbox indicator, or, since you only have 3 states, even a picture ring  with 3 images.

(for the colorbox idea, have a look at the following links: http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=231802#M231802)

 

(I don't recommend your technique with property nodes, but whatever you are currently doing is way too complicated:

  1. duplicate code in all three cases. Only code that differes between cases belongs inside the case structure!
  2. Sequence structures withot purpose. Execution order is completely unimportant
  3. local variables without purpose. The terminal is right there!

Here's how your code could be done with 10% of the effort:



Message Edited by altenbach on 02-19-2008 01:07 AM
Message 2 of 3
(4,122 Views)
    Thanks!
0 Kudos
Message 3 of 3
(4,116 Views)