LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Show which case in case structure is running

I want to know which case is run in "Case Structure".

I tried to send data into each case, but in case that not running, I want know it.

 

Case.JPG

 

0 Kudos
Message 1 of 5
(1,620 Views)

Hi Waruntron,

 


@Waruntron wrote:

I want to know which case is run in "Case Structure".

I tried to send data into each case, but in case that not running, I want know it.


THINK DATAFLOW!

 

When you want to know which case is called then you should place that indicator before the case structure!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 5
(1,591 Views)

You have three cases on a loop that only iterates twice.

 

With a bit of coding, you can keep statistics on how many time each case executes, but I think your problems are a bit simpler.

 

Obviously, your example got simplified so much that it no longer makes much sense.

Can you take a step back and explain what you are trying to do? Where does that string array come from? Why are your indicators buried deep inside case structures?

I have the feeling that better written, you might not even need a case structure. What problem are you trying to solve?

0 Kudos
Message 3 of 5
(1,584 Views)

Thanks, it's very helpful to me.

0 Kudos
Message 4 of 5
(1,578 Views)

@Waruntron wrote:

Thanks, it's very helpful to me.


What is?

0 Kudos
Message 5 of 5
(1,547 Views)