LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

bools with multiple cases

Hello, I'm new to labview. I have three different cases in a case structure and I want an led to turn on when each case turns on and then turns off immediately when it leaves that case. Then the next led will turn on and turn off when it leaves the case and so on. Any guidance would be appreciated, thanks.

0 Kudos
Message 1 of 2
(476 Views)

Hi Dan,

 


@dannnnii wrote:

I have three different cases in a case structure and I want an led to turn on when each case turns on and then turns off immediately when it leaves that case. Then the next led will turn on and turn off when it leaves the case and so on. Any guidance would be appreciated, thanks.


THINK DATAFLOW!

You want to set an indicator TRUE inside a case and set it FALSE after the case structure!?

  • You need the terminal and a local of that indicator and two boolean constants…
  • Set the indicator to TRUE inside the case. Place the FALSE constant inside the case.
  • Set the local of the indicator outside the case structure and wire the FALSE constant to that local.

What have you tried and where are you stuck?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(456 Views)