LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array Subset type doesn't match for "case structure"

Solved!
Go to solution
Hello
 
I am using an array and array subset to separate the values.
I try to connect array subset output to a CASE structure, But
I get an error: source is 1D array of unsigned byte and sink is…
What can be done to adapt the array subset to CASE structure?
Someone asked a similar question in the forum but I can't see an answer -
Thanks,
 
Yonatan
 
0 Kudos
Message 1 of 4
(1,337 Views)

Array subset as the name suggest creates a subset which is still an Array.

 

You can't connect a array of values to a case structure. You need an element of the array to wire to the case structure.

 

If you need to subject each element of the array subset to case structure, then put case structure inside for loop, index the array subset and feed it to the case structure.

 

Could you please explain why you're trying to do such a thing?

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 4
(1,333 Views)
Solution
Accepted by topic author rivlin

The output of Array Subset is an array.  A case structure cannot accept an array.  Instead of the Array Subset, use Index Array to pull out a single element.


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 3 of 4
(1,332 Views)

You can award solutions to more than one post.  (Strong hint.)

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 4
(1,298 Views)