LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Three conditions in real time signal

Hi, can anyone suggest how to make three condition? I have t value that changes in time and I need to exclude three cases. condition.jpg

0 Kudos
Message 1 of 8
(3,190 Views)

You should not follow that strict flow chart. You should use a case structure to distinguish the different states.

Regarding the LED color: The value of a LED is boolean: It is ON or OFF.

But the color is an arbitrary RGB (numeric) value. So you can change the ON color to RED, YELLOW or GREEN. After setting that color, you can turn on the LED (set its value to TRUE).

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 8
(3,187 Views)

I would use something like this VI I made a long time ago to as the input to a case to turn on proper LED.

 

X-Y-1-2-3.png

 

Notice the "=" is not the standard "=" primitive. Search for rounding errors and machine epsilon and you will see why I used it.

 

But in a nutshell remember when comparing non integers 1.0000000001 and 1.0000000000 are NOT equal!

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 3 of 8
(3,180 Views)

Can you send me that Labview file?

0 Kudos
Message 4 of 8
(3,151 Views)

The image RTSLVU posted is a "snippet". It contains the code. It states version 2015, so you'll need LV 2015 to load it.

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 5 of 8
(3,141 Views)

What LabVIEW version are you using?

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 6 of 8
(3,136 Views)

2014 version

0 Kudos
Message 7 of 8
(3,114 Views)

Here you go.

========================
=== Engineer Ambiguously ===
========================
Download All
0 Kudos
Message 8 of 8
(3,103 Views)