LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Ring array wiring with case control problem

Hello everyone. I have a problem with wiring the Ring control array with the case control. I have defined the Ring control to Long (I32) as the case, but it still says error.STRING.png

Best regards

Oesen
0 Kudos
Message 1 of 4
(2,326 Views)

You cannot wire an array to the case selector.  It requires a scalar.

 

How would it know which element of the array you want to use?

 

Use Index Array or put the case structure inside a loop and use autoindexing.

 

Lynn

Message 2 of 4
(2,324 Views)

There is no such control as 'ring control array'. If you inserted a ring control into an array, why? You obviously cannot connect an array to a case statement. You would simply connect a single ring control.

Message 3 of 4
(2,293 Views)

I'm guessing what you really want to be using here is an enum.  Then your case structure will use the defined text instead of the number.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 4
(2,288 Views)