LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

5 True/False input for Case Structure

Solved!
Go to solution

Hello!! I have 5 switches that need to turn ON/OFF (one at a time). It does work when it's connected to DAQ Assistant and able to verify which one is which with no problem.. Is this possible to apply in case structure? In the case structure, I have a sub vi that reads speed, and I only want it to be active when there's a switch turned on, so it will read 0 (zero) when switch is OFF.

______________
KowdTek
LabVIEW 2009

One Step At A Time, Maybe Two...
0 Kudos
Message 1 of 7
(3,380 Views)
Solution
Accepted by topic author KowdTek

I just answered this Q for (3) booleans yesterday in this thread.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 7
(3,372 Views)

Of course you can.  Have you tried it?

 

It is hard to offer any real help because your screenshot doesn't give me a clear idea of what you are trying to do or where you are having problems. 

I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours
One Tip.
On your block diagram, make sure you have names for each of your controls and make the labels visible on the block diagram.  You have a boolean control running to your stop node, and a boolean indicator in your case structure.  It is impossible to know what those controls/indicators do because you either didn't give them a name, or didn't show their label.
0 Kudos
Message 3 of 7
(3,368 Views)

Also try to re-think some of your code. Why do you go to single element arrays and back before building the array.

 

(Congratulations. This got you an honorable mention on our Rube Goldberg code thread. :D)

Message 4 of 7
(3,355 Views)
Thanks Ben!!!
______________
KowdTek
LabVIEW 2009

One Step At A Time, Maybe Two...
Message 5 of 7
(3,329 Views)

NO, thank YOU for marking that reply as a solution!

 

[Set PunMode = True]

 

Since I recycled that answer from the other thread (where it was also marked as a solution) it is really GREEN*.

 

[Set PunMODE = False]

 

 

Ben

 

* How many carbon credits are recycled answers worth? Smiley Very Happy

Message Edited by Ben on 11-19-2008 02:55 PM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 6 of 7
(3,314 Views)

Ben wrote:

 

* How many carbon credits are recycled answers worth? Smiley Very Happy


You just might be able to figure that one out!

 

Let's say a recycled answer took you 5 minutes to find and post.  Perhaps a new answer would have taken you 10 minutes.  You saved 5 minutes.

 

Let's say your PC is using about 200 watts.  You have a fancy new LCD monitor using about 50 Watts.    That is 75,000 watt-seconds of energy saved = .021 kw-h = 71 BTU.  (At 12cents/kw-h, that would be 25 thousandths of a penny)

 

With that information and some research (which I really don't feel like doing right now), efficiency of a coal burning power plant, amount of carbon in the coal to generate that power, blah blah blah,  you should be able to figure the "carbon footprint". Smiley Very Happy

 

(Now the 7 seconds it took me to add that emoticon wasted .00049 kw-hr or 1.66 BTU!)

Message 7 of 7
(3,292 Views)