Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

LabView

Posted on 1997-11-11
3
Medium Priority
?
715 Views
Last Modified: 2013-12-03
If there is a LabView expert available, I have a question:  I am new to LabView.  I need a "LED" object which can be "lit" in any one of three colors.  It seems that only two colors are available: "background" and "foreground".  I have tried attaching a "node", but do not know how to "wire" to that node.  Help Anyone? - Norm
0
Comment
Question by:normpos
3 Comments
 
LVL 2

Accepted Solution

by:
JensUniweb earned 400 total points
ID: 1408324
It was a long time since I used LabView. But what I remeber a led has only 2 states, "on" or "off". But you can set the "on" color and the "off" color. That way you can simulate a three(3) state led.
0
 

Author Comment

by:normpos
ID: 1408325
Thank you.  I appreciate your help.  -- Norm
0
 

Expert Comment

by:JavierRuiz
ID: 24608487
I know this question is waaay old, but there may be someone new who wanders here with the same problem.

The newest versions of LV allow two answers:

Easy one - That'll do: Use a Color Box
Hard one - Exactly what you wanted: Use Property node


The Easy one:

Right click on the front panel. In the Numeric panel, there's a Framed Color Box; place it and you can resize and deform it. Right click on it and click Change to Indicator.
Then on your Block Diagram, you can place Color constants (found in the Dialog & User Interface section) inside case structures, to set the color of that box to whatever you want.

The Hard one:

Place the regular LED you want. Find it in the Block diagram; right click and choose Create > Property Node > Colors.
Right click on that thing to Change to Write.
You can then programmatically change the color of the led (you still have to set it on and off). Check the Help for that one, it's a cluster of two arrays I think.




0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Loops Section Overview

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question