LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to create an array that goes into a case structure where each element in the array is an individual case and gets done in order

I want to create an array that goes into a case structure where each element in the array is an individual case and gets done in order. Any ideas, I've been playing with the idea but have had no luck, is this even possible?

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

I'm sorry, but this doesn't make any sense.  What are you trying to accomplish?  Array elements are data.

 

If I were to guess at what you want to do I'd say you want to create an array of child classes, each of which implements the same dynamic dispatch method, but that's not clear from your question.

0 Kudos
Message 2 of 8
(3,287 Views)
I'm a little confused but I think you don't want a case structure at all. You probably want an auto indexing for loop. Wire your array into the loop. The loop will iterate for each element of the array in order. Think of each iteration as a "case" where the element is available.
=====================
LabVIEW 2012


0 Kudos
Message 3 of 8
(3,281 Views)

Are you trying to implement something like a queued state machine?

 

Lynn

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

Let me take a step back and state what I'm trying to do... I have a group of tests I want to do, but I want to be able to specify which tests I do and in what order. I figured using a case structure would be the easiest and I'm going to select the tests from from Boolean expressions that are just push buttons on the front panel.

 

0 Kudos
Message 5 of 8
(3,274 Views)

Hi,

Please check it out the attached Vi.. Is this you need?

---
Silver_Shaper | CLD
0 Kudos
Message 6 of 8
(3,268 Views)

Yup thats pretty close, now I just need to figure out how to do them all in one shot with the push of another button outside the cluster.

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

This is more like what you described in your original post.

 

0 Kudos
Message 8 of 8
(3,251 Views)